@@ -1018,6 +1018,7 @@ def test_small_contracts_dropped(
10181018"""
10191019 )
10201020
1021+ @pytest .mark .usefixtures ("_vary_network_conn" )
10211022 def test_cyclic_excluded (self , tmp_path : Path , monkeypatch : pytest .MonkeyPatch ):
10221023 # Arrange
10231024 (tmp_path / ".importlinter" ).touch ()
@@ -1053,6 +1054,7 @@ def test_cyclic_excluded(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
10531054"""
10541055 )
10551056
1057+ @pytest .mark .usefixtures ("_vary_network_conn" )
10561058 def test_existing_ini_match (self , tmp_path : Path ):
10571059 # Arrange
10581060 (tmp_path / ".importlinter" ).write_text (
@@ -1081,6 +1083,7 @@ def test_existing_ini_match(self, tmp_path: Path):
10811083"""
10821084 )
10831085
1086+ @pytest .mark .usefixtures ("_vary_network_conn" )
10841087 def test_existing_ini_differs (self , tmp_path : Path ):
10851088 # Arrange
10861089 (tmp_path / ".importlinter" ).write_text (
@@ -1109,6 +1112,7 @@ def test_existing_ini_differs(self, tmp_path: Path):
11091112"""
11101113 )
11111114
1115+ @pytest .mark .usefixtures ("_vary_network_conn" )
11121116 def test_numbers_in_layer_names (self , tmp_path : Path ):
11131117 # Arrange
11141118 (tmp_path / ".importlinter" ).touch ()
@@ -1140,6 +1144,7 @@ def test_numbers_in_layer_names(self, tmp_path: Path):
11401144"""
11411145 )
11421146
1147+ @pytest .mark .usefixtures ("_vary_network_conn" )
11431148 def test_nesting (self , tmp_path : Path ):
11441149 # Arrange
11451150 (tmp_path / ".importlinter" ).touch ()
@@ -1183,6 +1188,7 @@ def test_nesting(self, tmp_path: Path):
11831188"""
11841189 )
11851190
1191+ @pytest .mark .usefixtures ("_vary_network_conn" )
11861192 def test_multiple_packages_with_nesting (self , tmp_path : Path ):
11871193 # The logic here is that we want to have the minimum number of nesting
11881194 # levels required to reach the minimum number of modules which is 3.
@@ -1539,6 +1545,7 @@ def test_config(
15391545 )
15401546
15411547 class TestBitbucketIntegration :
1548+ @pytest .mark .usefixtures ("_vary_network_conn" )
15421549 def test_config_file (self , tmp_path : Path ):
15431550 # Arrange
15441551 (tmp_path / "bitbucket-pipelines.yml" ).write_text ("""\
@@ -1582,6 +1589,7 @@ def test_config_contents(self, tmp_path: Path):
15821589"""
15831590 )
15841591
1592+ @pytest .mark .usefixtures ("_vary_network_conn" )
15851593 def test_successful_build (self , tmp_path : Path ):
15861594 # Act
15871595 with change_cwd (tmp_path ), files_manager ():
@@ -2055,6 +2063,7 @@ def test_add_unsubsumed_tools(self, uv_init_repo_dir: Path):
20552063 assert "ruff" in contents
20562064
20572065 class TestMultipleIntegrations :
2066+ @pytest .mark .usefixtures ("_vary_network_conn" )
20582067 def test_hooks_run_all_tools_empty_repo (self , uv_env_dir : Path ):
20592068 # Arrange
20602069 with change_cwd (uv_env_dir ), files_manager ():
@@ -2486,6 +2495,7 @@ def test_pyproject_without_ini_priority(self, uv_init_repo_dir: Path):
24862495 # Assert
24872496 assert (uv_init_repo_dir / "setup.cfg" ).read_text ()
24882497
2498+ @pytest .mark .usefixtures ("_vary_network_conn" )
24892499 def test_pythonpath_needed (self , tmp_path : Path ):
24902500 # https://github.com/usethis-python/usethis-python/issues/347
24912501
@@ -2917,6 +2927,7 @@ def test_pre_commit_first(self, uv_init_repo_dir: Path):
29172927 assert "ruff-format" in hook_names
29182928 assert "ruff" in hook_names
29192929
2930+ @pytest .mark .usefixtures ("_vary_network_conn" )
29202931 def test_creates_pyproject_toml (
29212932 self , tmp_path : Path , capfd : pytest .CaptureFixture [str ]
29222933 ):
@@ -3484,6 +3495,7 @@ def test_remove_only_linter_yaml_only(
34843495 )
34853496
34863497 class TestBitbucketIntegration :
3498+ @pytest .mark .usefixtures ("_vary_network_conn" )
34873499 def test_add_linter_only (self , tmp_path : Path ):
34883500 # Arrange
34893501 (tmp_path / "bitbucket-pipelines.yml" ).write_text ("""\
@@ -3500,6 +3512,7 @@ def test_add_linter_only(self, tmp_path: Path):
35003512 assert "ruff check" in contents
35013513 assert "ruff format" not in contents
35023514
3515+ @pytest .mark .usefixtures ("_vary_network_conn" )
35033516 def test_add_formatter_only (self , tmp_path : Path ):
35043517 # Arrange
35053518 (tmp_path / "bitbucket-pipelines.yml" ).write_text ("""\
0 commit comments