Skip to content

Commit 8c54c21

Browse files
committed
tests: skip tests without xdist
Ref: #688
1 parent eb9c68f commit 8c54c21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_db_setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def test_a():
115115

116116

117117
def test_xdist_with_reuse(django_testdir):
118+
pytest.importorskip("xdist")
118119
skip_if_sqlite_in_memory()
119120

120121
drop_database("gw0")
@@ -192,6 +193,7 @@ class TestSqliteWithXdist:
192193
}
193194

194195
def test_sqlite_in_memory_used(self, django_testdir):
196+
pytest.importorskip("xdist")
195197

196198
django_testdir.create_test_module(
197199
"""

0 commit comments

Comments
 (0)