summaryrefslogtreecommitdiff
path: root/tests/test_libmat2.py
diff options
context:
space:
mode:
authorjvoisin2018-07-10 20:49:54 +0200
committerjvoisin2018-07-10 21:24:26 +0200
commitd5861e46537f3e94abd26f63a3a7ad5b69d25e77 (patch)
treeb7d01595ad77fd210142afaaa8de28dfd919db3c /tests/test_libmat2.py
parent22e3918f67b3b3517312406c70a1e71641afc7ae (diff)
Implement a check for dependencies in mat2
Example use: ``` $ mat2 -c Dependencies required for MAT2 0.1.3: - Cairo: yes - Exiftool: yes - GdkPixbuf from PyGobject: yes - Mutagen: yes - Poppler from PyGobject: yes - PyGobject: yes ``` This should close #35
Diffstat (limited to 'tests/test_libmat2.py')
-rw-r--r--tests/test_libmat2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py
index cb37985..fa7e281 100644
--- a/tests/test_libmat2.py
+++ b/tests/test_libmat2.py
@@ -7,6 +7,14 @@ import zipfile
7import tempfile 7import tempfile
8 8
9from libmat2 import pdf, images, audio, office, parser_factory, torrent, harmless 9from libmat2 import pdf, images, audio, office, parser_factory, torrent, harmless
10from libmat2 import check_dependencies
11
12
13class TestCheckDependencies(unittest.TestCase):
14 def test_deps(self):
15 ret = check_dependencies()
16 for key, value in ret.items():
17 self.assertTrue(value)
10 18
11 19
12class TestParserFactory(unittest.TestCase): 20class TestParserFactory(unittest.TestCase):