We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df5796a commit ae5a863Copy full SHA for ae5a863
tests/unit_tests/test_gtdb_download.py
@@ -2,6 +2,7 @@
2
from unittest import mock
3
import requests
4
import logging
5
+
6
from autometa.taxonomy.download_gtdb_files import (
7
get_latest_gtdb_version,
8
get_gtdb_taxdump_release_url,
@@ -42,7 +43,9 @@ def test_get_latest_gtdb_version_fail(mock_requests_get):
42
43
)
44
45
host = "data.gtdb.ecogenomic.org"
- with pytest.raises(requests.exceptions.RequestException):
46
+ with pytest.raises(
47
+ RuntimeError, match="Failed to fetch GTDB version: Error occurred"
48
+ ):
49
get_latest_gtdb_version(host)
50
51
0 commit comments