From: Elena ``of Valhalla'' Grandi Date: Tue, 17 Oct 2023 13:40:14 +0200 Subject: Skip tests that require an internet connection Forwarded: not-needed --- tests/test_common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_common.py b/tests/test_common.py index 5d0054b..fafd8a3 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -76,6 +76,7 @@ def test_repr_ghostscript(): assert repr(tables[0].cells[0][0]) == "" +@pytest.mark.skip(reason="will not work without an internet connection") def test_url_poppler(): url = "https://camelot-py.readthedocs.io/en/master/_static/pdf/foo.pdf" tables = camelot.read_pdf(url, backend="poppler") @@ -85,6 +86,7 @@ def test_url_poppler(): @skip_on_windows +@pytest.mark.skip(reason="will not work without an internet connection") def test_url_ghostscript(): url = "https://camelot-py.readthedocs.io/en/master/_static/pdf/foo.pdf" tables = camelot.read_pdf(url, backend="ghostscript") @@ -93,6 +95,7 @@ def test_url_ghostscript(): assert repr(tables[0].cells[0][0]) == "" +@pytest.mark.skip(reason="will not work without an internet connection") def test_pages_poppler(): url = "https://camelot-py.readthedocs.io/en/master/_static/pdf/foo.pdf" tables = camelot.read_pdf(url, backend="poppler") @@ -112,6 +115,7 @@ def test_pages_poppler(): @skip_on_windows +@pytest.mark.skip(reason="will not work without an internet connection") def test_pages_ghostscript(): url = "https://camelot-py.readthedocs.io/en/master/_static/pdf/foo.pdf" tables = camelot.read_pdf(url, backend="ghostscript")