diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-25 13:32:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-25 13:32:56 +0000 |
commit | 0a9af27fe2fba946d543e12ff881d21fe72dd3ba (patch) | |
tree | d90256c9eadd1874af9f19f83348ebc5a3023912 /tests/extensions_test.py | |
parent | Releasing debian version 1.5.9-1. (diff) | |
download | identify-0a9af27fe2fba946d543e12ff881d21fe72dd3ba.tar.xz identify-0a9af27fe2fba946d543e12ff881d21fe72dd3ba.zip |
Merging upstream version 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.py | 6 |
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] |