add tests for update too
This commit is contained in:
@ -54,3 +54,10 @@ async def test_model_relationship():
|
|||||||
assert ws.id == 1
|
assert ws.id == 1
|
||||||
assert ws.topic == "Topic 1"
|
assert ws.topic == "Topic 1"
|
||||||
assert ws.category.name == "Foo"
|
assert ws.category.name == "Foo"
|
||||||
|
|
||||||
|
ws.topic = 'Topic 2'
|
||||||
|
await ws.update()
|
||||||
|
|
||||||
|
assert ws.id == 1
|
||||||
|
assert ws.topic == "Topic 2"
|
||||||
|
assert ws.category.name == "Foo"
|
||||||
|
|||||||
Reference in New Issue
Block a user