Skip to content

Commit debecc8

Browse files
committed
Added missing decorators to tests that depended on the DB but weren't marked as such
1 parent 6528bc9 commit debecc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_fixtures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,15 @@ def test_block_with_block(self, django_db_blocker):
617617
with pytest.raises(RuntimeError):
618618
Item.objects.exists()
619619

620+
@pytest.mark.django_db
620621
def test_unblock_manually(self, django_db_blocker):
621622
try:
622623
django_db_blocker.unblock()
623624
Item.objects.exists()
624625
finally:
625626
django_db_blocker.restore()
626627

628+
@pytest.mark.django_db
627629
def test_unblock_with_block(self, django_db_blocker):
628630
with django_db_blocker.unblock():
629631
Item.objects.exists()

0 commit comments

Comments
 (0)