From 9620452b44f8949ba4e44e8580a0400e2204d9fa Mon Sep 17 00:00:00 2001 From: collerek Date: Thu, 17 Sep 2020 19:11:21 +0200 Subject: [PATCH] fix overwritten pk for non id pks --- tests/test_non_integer_pkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_non_integer_pkey.py b/tests/test_non_integer_pkey.py index 7e1022f5d..3face9cdb 100644 --- a/tests/test_non_integer_pkey.py +++ b/tests/test_non_integer_pkey.py @@ -42,6 +42,6 @@ async def test_pk_1(): @pytest.mark.asyncio async def test_pk_2(): - # async with database: + async with database: model = await Model.objects.create(name="NAME") assert await Model.objects.all() == [model] \ No newline at end of file