Skip to content

Commit

Permalink
sort
Browse files Browse the repository at this point in the history
  • Loading branch information
killian-scalian committed Dec 19, 2024
1 parent 9584c54 commit 0116f85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/input_converter/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ def test_convert_area_to_input_components(self, local_study_w_areas):
area_components = converter.convert_study_to_input_components()
expected_area_components = InputComponents(
nodes=[
InputComponent(id="it", model="area", parameters=None),
InputComponent(id="fr", model="area", parameters=None),
InputComponent(id="it", model="area", parameters=None),
],
components=[],
connections=[],
)

area_components.nodes.sort(key=lambda x: x.id)
expected_area_components.nodes.sort(key=lambda x: x.id)
assert area_components == expected_area_components

0 comments on commit 0116f85

Please sign in to comment.