Skip to content

Commit

Permalink
enforce all names have a type
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Nov 22, 2020
1 parent 2b4216d commit 0dc6b33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/extensions_test.py
Expand Up @@ -13,6 +13,12 @@ def test_extensions_have_binary_or_text(extension):
assert len({'text', 'binary'} & tags) == 1, tags


@pytest.mark.parametrize('name', extensions.NAMES)
def test_names_have_binary_or_text(name):
tags = extensions.NAMES[name]
assert len({'text', 'binary'} & tags) == 1, tags


@pytest.mark.parametrize('extension', extensions.EXTENSIONS_NEED_BINARY_CHECK)
def test_need_binary_check_do_not_specify_text_binary(extension):
tags = extensions.EXTENSIONS_NEED_BINARY_CHECK[extension]
Expand Down

0 comments on commit 0dc6b33

Please sign in to comment.