summaryrefslogtreecommitdiffstats
path: root/tests/extensions_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extensions_test.py')
-rw-r--r--tests/extensions_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/extensions_test.py b/tests/extensions_test.py
index 44f16a8..4527a58 100644
--- a/tests/extensions_test.py
+++ b/tests/extensions_test.py
@@ -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]