Skip to content

Commit

Permalink
fixup! [wip] add more tests for apply_geolocation_rules
Browse files Browse the repository at this point in the history
Reword a test name and docstring.
  • Loading branch information
victorlin committed Jun 21, 2022
1 parent 23bcc27 commit 8dac880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/bin/tests/test_apply_geolocation_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def test_wildcards_precedence(self, tmpdir, raw_location, matching_annotation):
geolocation_rules = get_geolocation_rules(tmpdir, lines)
assert get_annotated_geolocation(geolocation_rules, raw_location) == matching_annotation

def test_matching_rule_over_wildcards(self, tmpdir):
"""Test that matching rules are used over wildcards."""
def test_exact_match_over_wildcard(self, tmpdir):
"""Test that an exact match rules is used over a wildcard match."""
lines = (
"a/b/c/d\t1/2/3/4",
"a/*/*/*\t1/*/*/*",
Expand Down

0 comments on commit 8dac880

Please sign in to comment.