Remove _errors and ghostscript test

This commit is contained in:
Vinayak Mehta
2018-12-18 07:43:52 +05:30
parent 9879a87c6f
commit 4938c48853
5 changed files with 48 additions and 257 deletions
-15
View File
@@ -74,21 +74,6 @@ def test_no_tables_found_warnings_suppressed():
pytest.fail('Unexpected warning: {}'.format(warning_text))
def test_ghostscript_not_found(monkeypatch):
import distutils
def _find_executable_patch(arg):
return ''
monkeypatch.setattr(distutils.spawn, 'find_executable', _find_executable_patch)
message = ('Please make sure that Ghostscript is installed and available'
' on the PATH environment variable')
filename = os.path.join(testdir, 'foo.pdf')
with pytest.raises(Exception, message=message):
tables = camelot.read_pdf(filename)
def test_no_password():
filename = os.path.join(testdir, 'health_protected.pdf')
message = 'file has not been decrypted'