forked from openlp/openlp
Make PyMuPDF mandatory for tests
This commit is contained in:
parent
2ee21a77c4
commit
2ed038ee2e
1
setup.py
1
setup.py
@ -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"'
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user