Skip to content

Commit

Permalink
Add db to test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Sep 4, 2024
1 parent 9e5ef2a commit 6a03459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/entities/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions backend/events/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6a03459

Please sign in to comment.