Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-06-26
Description: Ignore some tests that try to access network

--- a/tests/test_util/test_io.py
+++ b/tests/test_util/test_io.py
@@ -305,6 +305,7 @@
         open_(zip_path)
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 @pytest.mark.parametrize(
     "mode",
     ("r", "rb", "rt", None),
@@ -346,6 +347,7 @@
     assert remote_data.splitlines() == local_data.splitlines()
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 @pytest.mark.internet
 def test_open_url_compressed(DATA_DIR):
     """comparing compressed file handling"""
@@ -363,6 +365,7 @@
     assert remote_data.splitlines() == local_data.splitlines()
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 def test_open_url_write_exceptions():
     """Test 'w' mode (should raise Exception)"""
     with pytest.raises(Exception):
@@ -372,6 +375,7 @@
         )
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 def test_open_url_exceptions():
     """non-http(s) address for url (should raise Exception)"""
     with pytest.raises(Exception):
--- a/tests/test_app/test_evo.py
+++ b/tests/test_app/test_evo.py
@@ -870,6 +870,7 @@
     assert model._opt_args == {**opt_args, **{"show_progress": False}}
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 @pytest.mark.internet
 def test_get_app_tree_is_url():
     """A check that the model app can use a url for the tree"""
