We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20aead6 commit 2901df6Copy full SHA for 2901df6
test_app/tests/lib/utils/test_db.py
@@ -3,6 +3,8 @@
3
4
import pytest
5
6
+from django.db import connection
7
+
8
from ansible_base.lib.utils.db import advisory_lock, migrations_are_complete
9
10
@@ -27,6 +29,8 @@ def background_task(django_db_blocker):
27
29
28
30
@pytest.mark.django_db
31
def test_determine_lock_is_held(django_db_blocker):
32
+ if connection.vendor == 'sqlite':
33
+ pytest.skip('Advisory lock is not written for sqlite')
34
thread = threading.Thread(target=background_task, args=(django_db_blocker,))
35
thread.start()
36
for _ in range(5):
0 commit comments