Skip to content

Commit ae5a863

Browse files
committed
🐛 fix gtdb download tests
1 parent df5796a commit ae5a863

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit_tests/test_gtdb_download.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from unittest import mock
33
import requests
44
import logging
5+
56
from autometa.taxonomy.download_gtdb_files import (
67
get_latest_gtdb_version,
78
get_gtdb_taxdump_release_url,
@@ -42,7 +43,9 @@ def test_get_latest_gtdb_version_fail(mock_requests_get):
4243
)
4344

4445
host = "data.gtdb.ecogenomic.org"
45-
with pytest.raises(requests.exceptions.RequestException):
46+
with pytest.raises(
47+
RuntimeError, match="Failed to fetch GTDB version: Error occurred"
48+
):
4649
get_latest_gtdb_version(host)
4750

4851

0 commit comments

Comments
 (0)