Skip to content

Commit 929362c

Browse files
Mark a few more tests that require Internet access (#2400)
1 parent c9d4e8a commit 929362c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/cli/build/test_build.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,7 @@ def test_no_workspace_members(self, hatch, temp_dir, helpers):
14651465
"""
14661466
)
14671467

1468+
@pytest.mark.requires_internet
14681469
def test_default(self, hatch, temp_dir):
14691470
workspace_root = self._create_workspace(hatch, temp_dir)
14701471

@@ -1491,6 +1492,7 @@ def test_default(self, hatch, temp_dir):
14911492
for member_name in ("member1", "member2"):
14921493
assert not (workspace_root / "packages" / member_name / "dist").is_dir()
14931494

1495+
@pytest.mark.requires_internet
14941496
def test_virtual_root(self, hatch, temp_dir):
14951497
workspace_root = temp_dir / "workspace"
14961498
workspace_root.mkdir()
@@ -1523,6 +1525,7 @@ def test_virtual_root(self, hatch, temp_dir):
15231525
"member2-0.0.1.tar.gz",
15241526
]
15251527

1528+
@pytest.mark.requires_internet
15261529
def test_explicit_targets(self, hatch, temp_dir):
15271530
workspace_root = self._create_workspace(hatch, temp_dir)
15281531

@@ -1540,6 +1543,7 @@ def test_explicit_targets(self, hatch, temp_dir):
15401543
"workspace_root-0.0.1-py3-none-any.whl",
15411544
]
15421545

1546+
@pytest.mark.requires_internet
15431547
def test_explicit_directory(self, hatch, temp_dir):
15441548
workspace_root = self._create_workspace(hatch, temp_dir)
15451549
build_directory = temp_dir / "artifacts"

‎tests/cli/version/test_version.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_configured_project(self, hatch, temp_dir, helpers, config_file):
3737
)
3838

3939

40+
@pytest.mark.requires_internet
4041
def test_other_backend_show(hatch, temp_dir, helpers):
4142
project_name = "My.App"
4243

0 commit comments

Comments
 (0)