Page MenuHomeSoftware Heritage

D5669.id20260.diff
No OneTemporary

D5669.id20260.diff

diff --git a/swh/web/tests/conftest.py b/swh/web/tests/conftest.py
--- a/swh/web/tests/conftest.py
+++ b/swh/web/tests/conftest.py
@@ -123,13 +123,13 @@
# Fixture to get test client from Django REST Framework
-@pytest.fixture(scope="module")
+@pytest.fixture
def api_client():
return APIClient()
# Fixture to get API request factory from Django REST Framework
-@pytest.fixture(scope="module")
+@pytest.fixture
def api_request_factory():
return APIRequestFactory()

File Metadata

Mime Type
text/plain
Expires
Jul 3 2025, 6:34 PM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218616

Event Timeline