Make PyMuPDF mandatory for tests

This commit is contained in:
Bastian Germann 2019-05-02 12:35:29 +02:00
parent 2ee21a77c4
commit 2ed038ee2e
2 changed files with 1 additions and 4 deletions

View File

@ -201,6 +201,7 @@ using a computer and a data projector.""",
tests_require=[ tests_require=[
'nose2', 'nose2',
'pylint', 'pylint',
'PyMuPDF',
'pyodbc', 'pyodbc',
'pysword', 'pysword',
'python-xlib; platform_system=="Linux"' 'python-xlib; platform_system=="Linux"'

View File

@ -122,8 +122,6 @@ class TestPdfController(TestCase, TestMixin):
# WHEN: The Pdf is loaded # WHEN: The Pdf is loaded
controller = PdfController(plugin=self.mock_plugin) controller = PdfController(plugin=self.mock_plugin)
if not controller.check_available():
raise SkipTest('Could not detect mudraw or ghostscript, so skipping PDF test')
controller.temp_folder = self.temp_folder_path controller.temp_folder = self.temp_folder_path
controller.thumbnail_folder = self.thumbnail_folder_path controller.thumbnail_folder = self.thumbnail_folder_path
document = PdfDocument(controller, test_file_path) document = PdfDocument(controller, test_file_path)
@ -142,8 +140,6 @@ class TestPdfController(TestCase, TestMixin):
# WHEN: The Pdf is loaded # WHEN: The Pdf is loaded
controller = PdfController(plugin=self.mock_plugin) controller = PdfController(plugin=self.mock_plugin)
if not controller.check_available():
raise SkipTest('Could not detect mudraw or ghostscript, so skipping PDF test')
controller.temp_folder = self.temp_folder_path controller.temp_folder = self.temp_folder_path
controller.thumbnail_folder = self.thumbnail_folder_path controller.thumbnail_folder = self.thumbnail_folder_path
document = PdfDocument(controller, test_file_path) document = PdfDocument(controller, test_file_path)