Skip to content

Commit 7fdc7e6

Browse files
committed
Run ruff check . --select PT003,PT001 --fix --unsafe-fixes
1 parent 362cc8f commit 7fdc7e6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ def do_GET(self) -> None:
973973
self._seen_paths.add(self.path)
974974

975975

976-
@pytest.fixture(scope="function")
976+
@pytest.fixture
977977
def html_index_with_onetime_server(
978978
html_index_for_packages: Path,
979979
) -> Iterator[http.server.ThreadingHTTPServer]:

tests/functional/test_download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ def test_download_use_pep517_propagation(
12341234
assert len(downloads) == 2
12351235

12361236

1237-
@pytest.fixture(scope="function")
1237+
@pytest.fixture
12381238
def download_local_html_index(
12391239
script: PipTestEnvironment,
12401240
html_index_for_packages: Path,
@@ -1265,7 +1265,7 @@ def run_for_generated_index(
12651265
return run_for_generated_index
12661266

12671267

1268-
@pytest.fixture(scope="function")
1268+
@pytest.fixture
12691269
def download_server_html_index(
12701270
script: PipTestEnvironment,
12711271
tmpdir: Path,

tests/unit/test_network_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from tests.lib.requests_mocks import MockConnection, MockRequest, MockResponse
1212

1313

14-
@pytest.fixture(scope="function", autouse=True)
14+
@pytest.fixture(autouse=True)
1515
def reset_keyring() -> Iterable[None]:
1616
yield None
1717
# Reset the state of the module between tests

tests/unit/test_network_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from tests.lib.filesystem import chmod
1111

1212

13-
@pytest.fixture(scope="function")
13+
@pytest.fixture
1414
def cache_tmpdir(tmpdir: Path) -> Path:
1515
cache_dir = tmpdir.joinpath("cache")
1616
cache_dir.mkdir(parents=True)

0 commit comments

Comments
 (0)