Skip to content

Commit 3ca9b46

Browse files
committed
missed this
1 parent 5e6a296 commit 3ca9b46

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test_app/tests/lib/utils/test_db.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@ def test_migrations_are_complete():
1414
assert migrations_are_complete()
1515

1616

17-
@pytest.mark.django_db
18-
def test_get_unclaimed_lock():
19-
with advisory_lock('test_get_unclaimed_lock'):
20-
pass
21-
22-
2317
class TestAdvisoryLock:
2418
@pytest.fixture(autouse=True)
2519
def skip_if_sqlite(self):
2620
if connection.vendor == 'sqlite':
2721
pytest.skip('Advisory lock is not written for sqlite')
2822

23+
@pytest.mark.django_db
24+
def test_get_unclaimed_lock(self):
25+
with advisory_lock('test_get_unclaimed_lock'):
26+
pass
27+
2928
@staticmethod
3029
def background_task(django_db_blocker):
3130
# HACK: as a thread the pytest.mark.django_db will not work

0 commit comments

Comments
 (0)