pull/251/merge
mohanqxf2 2021-07-09 14:45:24 +00:00 committed by GitHub
commit 6d0fd601db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -2,12 +2,12 @@
import os
import warnings
from camelot.utils import is_url
import pytest
import camelot
testdir = os.path.dirname(os.path.abspath(__file__))
testdir = os.path.join(testdir, "files")
filename = os.path.join(testdir, "foo.pdf")
@ -118,3 +118,7 @@ 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_invalid_url():
url = 'fttp://google.com/pdf'
assert is_url(url) == False