From 8f917932621a871b80695a047f3c250a644042ae Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 26 Apr 2026 16:58:17 -0400 Subject: [PATCH] test(unit): mark PyPI-backed tests as network These tests install build requirements from https://pypi.org/simple via uv, so they require real network access and should be skipped unless --with-network is enabled. Signed-off-by: Ihar Hrachyshka --- tests/test_dependencies.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_dependencies.py b/tests/test_dependencies.py index 0346c4e5..aad6d73f 100644 --- a/tests/test_dependencies.py +++ b/tests/test_dependencies.py @@ -181,6 +181,7 @@ def test_get_build_system_dependencies_cached( @patch("fromager.dependencies._write_requirements_file") @_clean_build_artifacts +@pytest.mark.network def test_get_build_backend_dependencies( _: Mock, tmp_context: context.WorkContext, tmp_path: pathlib.Path ) -> None: @@ -238,6 +239,7 @@ def test_get_build_backend_dependencies_cached( @patch("fromager.dependencies._write_requirements_file") @_clean_build_artifacts +@pytest.mark.network def test_get_build_sdist_dependencies( _: Mock, tmp_context: context.WorkContext, tmp_path: pathlib.Path ) -> None: