From debecc837b5d402dcf61fd43f6b0ac21d4a5946b Mon Sep 17 00:00:00 2001 From: Chris NeJame Date: Fri, 17 Jan 2020 12:56:21 -0500 Subject: [PATCH] Added missing decorators to tests that depended on the DB but weren't marked as such --- tests/test_fixtures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py index 2c718c54f..7f84b22c1 100644 --- a/tests/test_fixtures.py +++ b/tests/test_fixtures.py @@ -617,6 +617,7 @@ def test_block_with_block(self, django_db_blocker): with pytest.raises(RuntimeError): Item.objects.exists() + @pytest.mark.django_db def test_unblock_manually(self, django_db_blocker): try: django_db_blocker.unblock() @@ -624,6 +625,7 @@ def test_unblock_manually(self, django_db_blocker): finally: django_db_blocker.restore() + @pytest.mark.django_db def test_unblock_with_block(self, django_db_blocker): with django_db_blocker.unblock(): Item.objects.exists()