diff options
Diffstat (limited to '')
-rw-r--r-- | tests/api/test_db.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/api/test_db.py b/tests/api/test_db.py index 1405c23..b030035 100644 --- a/tests/api/test_db.py +++ b/tests/api/test_db.py @@ -67,8 +67,8 @@ async def test_models_retained_when_clearing_association( comic = await DB.add(comic) async with database.session() as s: - object = await s.get(Comic, comic.id) - setattr(object, key, []) + obj = await s.get(Comic, comic.id) + setattr(obj, key, []) await s.commit() assert await DB.get(assoccls, (comic.id, model.id)) is None @@ -87,8 +87,8 @@ async def test_models_retained_when_clearing_comictag(empty_comic): await DB.add(ct) async with database.session() as s: - object = await s.get(Comic, comic.id) - object.tags = [] + obj = await s.get(Comic, comic.id) + obj.tags = [] await s.commit() assert await DB.get(ComicTag, (comic.id, ct.namespace_id, ct.tag_id)) is None |