summaryrefslogtreecommitdiffstats
path: root/tests/extensions_test.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-01-25 13:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-01-25 13:32:43 +0000
commit16854fb815633c4ca1334c21d04296060e8fda19 (patch)
tree0cb0f00ce35c81b55556778f34176b6eaa698222 /tests/extensions_test.py
parentAdding upstream version 1.5.9. (diff)
downloadidentify-16854fb815633c4ca1334c21d04296060e8fda19.tar.xz
identify-16854fb815633c4ca1334c21d04296060e8fda19.zip
Adding upstream version 1.5.13.upstream/1.5.13
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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]