From 647e4d26a8b554ba978d08bb9ecf30ab94332965 Mon Sep 17 00:00:00 2001 From: Mohan Kumar Date: Fri, 9 Jul 2021 20:14:53 +0530 Subject: [PATCH] coverage for is_url --- tests/test_errors.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index e6878b7..b94d800 100755 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -2,6 +2,7 @@ import os import warnings +from camelot.utils import is_url import pytest @@ -120,6 +121,4 @@ def test_bad_password(): def test_invalid_url(): url = 'fttp://google.com/pdf' - message = "File format not supported" - with pytest.raises(Exception, match=message): - url = camelot.read_pdf(url) \ No newline at end of file + assert is_url(url) == False \ No newline at end of file