Test copy-on-write dei task: rilettura della collezione in sessione condivisa (#53)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -146,6 +146,8 @@ async def test_copy_on_write_carries_the_three_fields(
|
|||||||
value=10.0, pass_fail="pass", deviation=0.0, input_method="manual",
|
value=10.0, pass_fail="pass", deviation=0.0, input_method="manual",
|
||||||
))
|
))
|
||||||
await db_session.commit()
|
await db_session.commit()
|
||||||
|
# sessione condivisa col client: la collezione version.tasks va riletta
|
||||||
|
db_session.expire_all()
|
||||||
|
|
||||||
resp = await client.put(
|
resp = await client.put(
|
||||||
f"/api/tasks/{created['id']}", headers=auth_headers(maker_user),
|
f"/api/tasks/{created['id']}", headers=auth_headers(maker_user),
|
||||||
|
|||||||
Reference in New Issue
Block a user