TEST TO CHECK UNSUPPORTED URL
Added test to check if the error message is displayed accurately when an unsupported url is passedpull/249/head
parent
f43235934b
commit
a090e4d034
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue