coverage for is_url

pull/251/head
Mohan Kumar 2021-07-09 20:14:53 +05:30
parent 680b0f3fe9
commit 647e4d26a8
1 changed files with 2 additions and 3 deletions

View File

@ -2,6 +2,7 @@
import os import os
import warnings import warnings
from camelot.utils import is_url
import pytest import pytest
@ -120,6 +121,4 @@ def test_bad_password():
def test_invalid_url(): def test_invalid_url():
url = 'fttp://google.com/pdf' url = 'fttp://google.com/pdf'
message = "File format not supported" assert is_url(url) == False
with pytest.raises(Exception, match=message):
url = camelot.read_pdf(url)