generated from john/python-template
This commit is contained in:
@@ -31,6 +31,7 @@ async def test_create_document_with_people_rolls_back_on_invalid_person(default_
|
||||
await create_document_with_people(
|
||||
document=Document(name="Must roll back"),
|
||||
links=[DocumentPersonInput(person_id=uuid4(), role_id=role.id)],
|
||||
tag_labels=[],
|
||||
documents=documents,
|
||||
people=people,
|
||||
)
|
||||
@@ -48,6 +49,7 @@ async def test_update_document_with_people_rolls_back_document_and_links(default
|
||||
document = await create_document_with_people(
|
||||
document=Document(name="Original name"),
|
||||
links=[DocumentPersonInput(person_id=person.id, role_id=role.id)],
|
||||
tag_labels=[],
|
||||
documents=documents,
|
||||
people=people,
|
||||
)
|
||||
@@ -63,6 +65,7 @@ async def test_update_document_with_people_rolls_back_document_and_links(default
|
||||
await update_document_with_people(
|
||||
document=candidate,
|
||||
links=[DocumentPersonInput(person_id=person.id, role_id=inactive.id)],
|
||||
tag_labels=[],
|
||||
documents=documents,
|
||||
people=people,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user