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 ede6840 commit 1c3f7cdCopy full SHA for 1c3f7cd
tests/test_async_db.py
@@ -41,13 +41,9 @@ def sync_db_item() -> Any:
41
return Item.objects.create(name="sync")
42
43
44
+@pytest.mark.usefixtures("db_item", "sync_db_item")
45
@pytestmark
46
@pytest.mark.xfail(strict=True, reason="Sync fixture used in async test")
-@pytest.mark.usefixtures("db_item", "sync_db_item")
47
+@pytest.mark.django_db
48
async def test_db_item() -> None:
49
pass
-
50
51
-@pytest.mark.xfail(strict=True, reason="Async fixture used in sync test")
52
-def test_sync_db_item(async_db_item: Item, sync_db_item) -> None:
53
- pass
0 commit comments