Author: Steffen Möller <moeller@debian.org>
        Andreas Tille <tille@debian.org>
Last-Update: Fri, 18 Feb 2022 18:46:02 +0100
Description: Exclude tests accessing network

--- a/tests/test_download.py
+++ b/tests/test_download.py
@@ -19,7 +19,7 @@ URL = \
     'ftp://ftp.ensembl.org/pub/release-75/fasta/homo_sapiens/dna/Homo_sapiens.GRCh37.75.dna_rm.chromosome.MT.fa.gz'
 
 
-def test_fetch_decompress():
+def notest_fetch_decompress():
     for use_wget_if_available in [True, False]:
         for timeout in [None, 10**6]:
             path1 = fetch_file(
@@ -33,7 +33,7 @@ def test_fetch_decompress():
             s1 = f1.read()
             assert "TCAATTTCGTGCCAG" in s1
 
-def test_fetch_subdirs():
+def notest_fetch_subdirs():
     path = fetch_file(URL, decompress=True, subdir="datacache")
     assert path.endswith(FASTA_FILENAME)
 
--- a/tests/test_names.py
+++ b/tests/test_names.py
@@ -5,7 +5,7 @@ def test_url_without_filename():
     assert filename
     assert "google" in filename
 
-def test_multiple_domains_same_file():
+def notest_multiple_domains_same_file():
     filename_google = build_local_filename(
         download_url="http://www.google.com/index.html")
     filename_yahoo = build_local_filename(
@@ -13,4 +13,4 @@ def test_multiple_domains_same_file():
 
     assert "index" in filename_google
     assert "index" in filename_yahoo
-    assert filename_yahoo != filename_google
\ No newline at end of file
+    assert filename_yahoo != filename_google
--- a/tests/test_cache_object.py
+++ b/tests/test_cache_object.py
@@ -21,7 +21,7 @@ def test_cache_object_local_filename():
     filename = Cache(CACHE_DIR).local_filename(filename="test")
     assert filename.endswith("test")
 
-def test_cache_fetch_google():
+def notest_cache_fetch_google():
     cache = Cache(CACHE_DIR)
     path = cache.fetch(TEST_URL, filename=TEST_FILENAME)
     assert path.endswith(TEST_FILENAME), \
@@ -39,7 +39,7 @@ def test_cache_fetch_force(mock_download
     assert len(mock_download.call_args_list) == 2, \
         "Expected two separate calls to _download, given force=True"
 
-def test_cache_delete_url():
+def notest_cache_delete_url():
     cache = Cache(CACHE_DIR)
     path = cache.fetch(TEST_URL, filename=TEST_FILENAME)
     assert exists(path), "Expected %s to exist after download" % path
@@ -47,7 +47,7 @@ def test_cache_delete_url():
     assert not exists(path), \
         "Expected %s to be deleted after call to delete_url" % path
 
-def test_cache_missing_file():
+def notest_cache_missing_file():
     """test_cache_missing_file : Files can be deleted from the file system,
     Cache should be aware that these files no longer exist
     """
--- a/tests/test_fasta_dict.py
+++ b/tests/test_fasta_dict.py
@@ -46,6 +46,3 @@ def fetch_fasta_dict(path_or_url):
     return d
 
 
-def test_download_fasta_dict():
-    d = fetch_fasta_dict(URL)
-    assert len(d) > 0
