add connection to test
This commit is contained in:
@ -115,6 +115,7 @@ async def test_json_is_not_required_if_nullable():
|
|||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_setting_values_after_init():
|
async def test_setting_values_after_init():
|
||||||
|
async with database:
|
||||||
t1 = Thing(id="67a82813-d90c-45ff-b546-b4e38d7030d7", name="t1", js=["thing1"])
|
t1 = Thing(id="67a82813-d90c-45ff-b546-b4e38d7030d7", name="t1", js=["thing1"])
|
||||||
assert '["thing1"]' in t1.json()
|
assert '["thing1"]' in t1.json()
|
||||||
await t1.save()
|
await t1.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user