diff --git a/adit/batch_transfer/tests/test_views.py b/adit/batch_transfer/tests/test_views.py index 434f2654..ec8e114e 100644 --- a/adit/batch_transfer/tests/test_views.py +++ b/adit/batch_transfer/tests/test_views.py @@ -1,11 +1,11 @@ import pytest from adit_radis_shared.accounts.factories import UserFactory from adit_radis_shared.common.utils.testing_helpers import add_user_to_group -from django.conf import LazySettings from django.test import Client from django.urls import reverse from procrastinate.contrib.django.models import ProcrastinateJob from pytest_django.asserts import assertTemplateUsed +from pytest_django.fixtures import SettingsWrapper from adit.batch_transfer.utils.testing_helpers import create_batch_transfer_group, create_form_data from adit.core.models import DicomServer @@ -44,7 +44,7 @@ def test_logged_in_user_with_permission_can_access_form(client: Client): @pytest.mark.django_db -def test_batch_job_created_and_enqueued_with_auto_verify(client: Client, settings: LazySettings): +def test_batch_job_created_and_enqueued_with_auto_verify(client: Client, settings: SettingsWrapper): settings.START_BATCH_TRANSFER_UNVERIFIED = True user = UserFactory.create() @@ -67,7 +67,7 @@ def test_batch_job_created_and_enqueued_with_auto_verify(client: Client, setting @pytest.mark.django_db def test_batch_job_created_and_not_enqueued_without_auto_verify( - client: Client, settings: LazySettings + client: Client, settings: SettingsWrapper ): settings.START_BATCH_TRANSFER_UNVERIFIED = False