pull/249/merge
akkuldn 2021-07-09 07:26:08 +00:00 committed by GitHub
commit 9503f711ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -118,3 +118,9 @@ def test_bad_password():
message = "file has not been decrypted"
with pytest.raises(Exception, match=message):
tables = camelot.read_pdf(filename, password="wrongpass")
def test_content_type():
url="https://camelot-py.readthedocs.io/en/master/_static/csv/foo.csv"
message = "File format not supported"
with pytest.raises(NotImplementedError, match=message):
tables = camelot.read_pdf(url)