1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 25 Aug 2022 14:49:24 +0200
Description: Ignore test accessing online resources
--- a/tests/test_io/test_web/test_load.py
+++ b/tests/test_io/test_web/test_load.py
@@ -65,13 +65,14 @@ def test_biomodels_access(biomodels: Moc
load_model("BIOMD0000000633", cache=False, repositories=[biomodels])
biomodels.get_sbml.assert_called_once_with(model_id="BIOMD0000000633")
-
+@pytest.mark.skip(reason="Do not test in Debian since build is offline")
def test_unknown_model() -> None:
"""Expect that a not found error is raised (e2e)."""
with pytest.raises(RuntimeError):
load_model("MODELWHO?", cache=False)
+@pytest.mark.skip(reason="Do not test in Debian since build is offline")
@pytest.mark.parametrize(
"model_id, num_metabolites, num_reactions",
[("e_coli_core", 72, 95), ("BIOMD0000000633", 50, 35)],
@@ -94,6 +95,7 @@ def test_remote_load(model_id: str, num_
assert len(model.reactions) == num_reactions
+@pytest.mark.skip(reason="Do not test in Debian since build is offline")
def test_cache(
monkeypatch: pytest.MonkeyPatch, tmp_path: Path, bigg_models: Mock, biomodels: Mock
) -> None:
|