From 851cd244530000bd4646798a333e85159128b4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Mon, 4 Dec 2023 11:28:08 +0100 Subject: [PATCH] Mark some tests with pytest network marker to skip them when the tests are running without internet access --- tests/installation/test_chef.py | 1 + tests/installation/test_executor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/installation/test_chef.py b/tests/installation/test_chef.py index 9a7e63c75c9..6e84905ed90 100644 --- a/tests/installation/test_chef.py +++ b/tests/installation/test_chef.py @@ -50,6 +50,7 @@ def setup(mocker: MockerFixture, pool: RepositoryPool) -> None: mocker.patch.object(Factory, "create_pool", return_value=pool) +@pytest.mark.network def test_isolated_env_install_success(pool: RepositoryPool) -> None: with ephemeral_environment(Path(sys.executable)) as venv: env = IsolatedEnv(venv, pool) diff --git a/tests/installation/test_executor.py b/tests/installation/test_executor.py index dfc1adc2a4d..eb704ae5ac1 100644 --- a/tests/installation/test_executor.py +++ b/tests/installation/test_executor.py @@ -710,6 +710,7 @@ def test_executor_should_write_pep610_url_references_for_wheel_files( assert url.exists(), "source file should not be deleted" +@pytest.mark.network def test_executor_should_write_pep610_url_references_for_non_wheel_files( tmp_venv: VirtualEnv, pool: RepositoryPool,