From ed06b469978478b1740b339cd056abbd00a5af46 Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Mon, 3 Jun 2024 11:27:21 -0700 Subject: [PATCH] auto use, n is 3 --- pytest.ini | 2 +- upload/tests/test_upload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index 6e4efe6bcb..14c9f1c3ed 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,3 @@ [pytest] DJANGO_SETTINGS_MODULE = codecov.settings_dev -addopts = --reuse-db -n auto --dist no -p no:warnings --ignore=shared --ignore-glob=**/test_results* \ No newline at end of file +addopts = --reuse-db -n 3 --dist no -p no:warnings --ignore=shared --ignore-glob=**/test_results* \ No newline at end of file diff --git a/upload/tests/test_upload.py b/upload/tests/test_upload.py index 6a0e066d8e..9edadcdae3 100644 --- a/upload/tests/test_upload.py +++ b/upload/tests/test_upload.py @@ -907,7 +907,7 @@ def test_dispatch_upload_task(self, upload): class UploadHandlerRouteTest(APITestCase): - @pytest.fixture(autouse=True) + @pytest.fixture(scope="function", autouse=True) def inject_mocker(self, mocker): self.mocker = mocker