Skip to content

Commit beb1a05

Browse files
Apply prepare changes
1 parent 64410fe commit beb1a05

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/opengeodeweb_back/geode_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ def get_inspector_children(obj):
182182
new_object["nb_issues"] = 0
183183
new_object["children"] = []
184184
for child in dir(obj):
185-
if (
186-
not child.startswith("__")
187-
and not child in ["inspection_type", "string"]
188-
):
185+
if not child.startswith("__") and not child in [
186+
"inspection_type",
187+
"string",
188+
]:
189189
child_instance = obj.__getattribute__(child)
190190
child_object = get_inspector_children(child_instance)
191191
new_object["children"].append(child_object)

tests/test_functions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,10 @@ def test_get_inspector_children():
209209
data = geode_functions.load(geode_object, file_absolute_path)
210210
class_inspector = geode_functions.inspect(geode_object, data)
211211
assert "InspectionResult" in class_inspector.__class__.__name__
212-
inspection_result = geode_functions.get_inspector_children(class_inspector)
213-
212+
inspection_result = geode_functions.get_inspector_children(
213+
class_inspector
214+
)
215+
214216
print(f"\t\t{inspection_result=}", flush=True)
215217
assert type(inspection_result) is dict
216218

tests/test_routes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_full_data():
2121
"filename": "corbi.og_brep",
2222
"supported_feature": None,
2323
}
24-
24+
2525
# Normal test with filename 'corbi.og_brep'
2626
response = client.post(route, json=get_full_data())
2727
assert response.status_code == 200
@@ -112,9 +112,7 @@ def get_full_data():
112112
json = get_full_data()
113113

114114
# Normal test with geode_object 'BRep'
115-
response = client.post(
116-
route, json=json
117-
)
115+
response = client.post(route, json=json)
118116
assert response.status_code == 200
119117
inspection_result = response.json["inspection_result"]
120118
assert type(inspection_result) is dict

0 commit comments

Comments
 (0)