Skip to content

Commit

Permalink
Renamed fixtures to be easier to understand.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigurd-Borge committed Dec 11, 2024
1 parent 6bc4612 commit 94247ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


@pytest.fixture
def other_study(tmp_path):
def other_study_with_other_area(tmp_path):
other_study_name = "other test study"
study_version = "880"

Expand All @@ -27,6 +27,6 @@ def other_study(tmp_path):


@pytest.fixture
def other_area(other_study):
usa = other_study.create_area("usa")
def unknown_area(other_study_with_other_area):
usa = other_study_with_other_area.create_area("usa")
return usa
4 changes: 2 additions & 2 deletions tests/integration/test_local_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


class TestLocalClient:
def test_local_study(self, tmp_path, other_area):
def test_local_study(self, tmp_path, unknown_area):
study_name = "test study"
study_version = "880"

Expand Down Expand Up @@ -67,7 +67,7 @@ def test_local_study(self, tmp_path, other_area):

## Cannot link areas that don't exist in the study
with pytest.raises(LinkCreationError, match="Could not create the link fr / usa: usa does not exist"):
test_study.create_link(area_from=fr.id, area_to=other_area.id)
test_study.create_link(area_from=fr.id, area_to=unknown_area.id)

# Thermal
fr_nuclear = fr.create_thermal_cluster("nuclear")
Expand Down

0 comments on commit 94247ce

Please sign in to comment.