Skip to content

Commit 6763404

Browse files
committed
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 <ihar.hrachyshka@gmail.com>
1 parent ae65fdb commit 6763404

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_dependencies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def test_get_build_system_dependencies_cached(
181181

182182
@patch("fromager.dependencies._write_requirements_file")
183183
@_clean_build_artifacts
184+
@pytest.mark.network
184185
def test_get_build_backend_dependencies(
185186
_: Mock, tmp_context: context.WorkContext, tmp_path: pathlib.Path
186187
) -> None:
@@ -238,6 +239,7 @@ def test_get_build_backend_dependencies_cached(
238239

239240
@patch("fromager.dependencies._write_requirements_file")
240241
@_clean_build_artifacts
242+
@pytest.mark.network
241243
def test_get_build_sdist_dependencies(
242244
_: Mock, tmp_context: context.WorkContext, tmp_path: pathlib.Path
243245
) -> None:

0 commit comments

Comments
 (0)