diff --git a/backend/entities/tests.py b/backend/entities/tests.py index b691b6ae7..eeeaf1909 100644 --- a/backend/entities/tests.py +++ b/backend/entities/tests.py @@ -22,8 +22,8 @@ ) -@pytest.mark.django_db(transaction=True) -def test_str_methods() -> None: +@pytest.mark.django_db +def test_str_methods(db) -> None: organization = OrganizationFactory.build() # Note: Needs to be updated to reflect the recent changes. # organization_application = OrganizationApplicationFactory.build() diff --git a/backend/events/tests.py b/backend/events/tests.py index 96ef68e9d..f839149df 100644 --- a/backend/events/tests.py +++ b/backend/events/tests.py @@ -15,8 +15,8 @@ ) -@pytest.mark.django_db(transaction=True) -def test_str_methods() -> None: +@pytest.mark.django_db +def test_str_methods(db) -> None: event = EventFactory.build() event_attendee = EventAttendeeFactory.build() event_format = EventFormatFactory.build()