Skip to content

Commit

Permalink
Update test file path
Browse files Browse the repository at this point in the history
  • Loading branch information
phackstock committed Sep 25, 2024
1 parent 2cf4763 commit a763402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ def test_validation_with_custom_dimension(simple_df):

def test_wildcard_match(simple_df):
definition = DataStructureDefinition(
TEST_DATA_DIR / "codelist_wildcard",
TEST_DATA_DIR / "codelist" / "wildcard",
dimensions=["scenario"],
)

assert definition.validate(simple_df) is None

with pytest.raises(ValueError, match=MATCH_FAIL_VALIDATION):
definition.validate(
simple_df.rename(scenario={"scen_a": "foo"})
)
definition.validate(simple_df.rename(scenario={"scen_a": "foo"}))

0 comments on commit a763402

Please sign in to comment.