Skip to content

Commit 1c3f7cd

Browse files
author
Lode Rosseel
committed
Implement code comments
1 parent ede6840 commit 1c3f7cd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_async_db.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ def sync_db_item() -> Any:
4141
return Item.objects.create(name="sync")
4242

4343

44+
@pytest.mark.usefixtures("db_item", "sync_db_item")
4445
@pytestmark
4546
@pytest.mark.xfail(strict=True, reason="Sync fixture used in async test")
46-
@pytest.mark.usefixtures("db_item", "sync_db_item")
47+
@pytest.mark.django_db
4748
async def test_db_item() -> None:
4849
pass
49-
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

Comments
 (0)