Skip to content

Commit

Permalink
Fix duplicate test name
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-almeida committed Sep 11, 2024
1 parent 33715c2 commit 1c0b54e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/test_codelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_simple_codelist():

assert "Some Variable" in codelist
assert codelist["Some Variable"].unit == "" # this is a dimensionless variable
assert type(codelist["Some Variable"].bool) == bool # this is a boolean
assert type(codelist["Some Variable"].bool) is bool # this is a boolean


def test_codelist_adding_duplicate_raises():
Expand Down Expand Up @@ -396,20 +396,6 @@ def test_multiple_external_repos():
for repo in nomenclature_config.repositories.values()
)
assert len(variable_code_list) > 2000
finally:
clean_up_external_repos(nomenclature_config.repositories)


def test_multiple_external_repos():
nomenclature_config = NomenclatureConfig.from_file(
TEST_DATA_DIR / "nomenclature_configs" / "multiple_repos_per_dimension.yaml"
)
try:
variable_code_list = VariableCodeList.from_directory(
"variable",
TEST_DATA_DIR / "nomenclature_configs" / "variable",
nomenclature_config,
)
assert variable_code_list["Final Energy"].repository == "common-definitions"
assert variable_code_list["Employment"].repository == "legacy-definitions"
finally:
Expand Down

0 comments on commit 1c0b54e

Please sign in to comment.