Skip to content

Commit

Permalink
fixing mssql test
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Jun 13, 2024
1 parent 387bc2e commit 85bc543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_model_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ async def test_update_or_create(self):
self.assertNotEqual(self.mdl, mdl)
mdl2 = await self.cls.get(name="Test2")
self.assertEqual(mdl, mdl2)

async def foo(self):
mdl, created = await self.cls.update_or_create(name="Test")
self.assertFalse(created)
mdl_dict = dict(mdl)
oldid = mdl.id
mdl.id = 135
Expand Down

0 comments on commit 85bc543

Please sign in to comment.