Skip to content

Commit

Permalink
Add a gut check that all ENSIP-15 tests are running
Browse files Browse the repository at this point in the history
  • Loading branch information
fselmo committed Jun 21, 2023
1 parent 6a2b979 commit 2ce8651
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ens/normalization/test_normalize_name_ensip15.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
POSITIVE_TEST_CASES = [test for test in normalization_tests if "error" not in test]
NEGATIVE_TEST_CASES = [test for test in normalization_tests if "error" in test]

# gut check that we have all the tests
if not len(POSITIVE_TEST_CASES) + len(NEGATIVE_TEST_CASES) == len(normalization_tests):
raise AssertionError("Not all normalization tests are accounted for.")


@pytest.mark.parametrize(
"positive_test_case",
Expand Down

0 comments on commit 2ce8651

Please sign in to comment.