Skip to content

Commit b6438c2

Browse files
committed
Fix test
1 parent 5f5f141 commit b6438c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_endpoints/test_post.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ def test_objects_add_family(self):
290290
(handle_child, 1, "Son", "Family"),
291291
]
292292
]
293+
headers_admin = get_headers(self.client, "admin", "123")
294+
rv = self.client.get("/api/people/", headers=headers_admin)
295+
handles = [obj["handle"] for obj in rv.json]
296+
# delete existing people
297+
for handle in handles:
298+
self.client.delete(f"/api/people/{handle}", headers=headers_admin)
293299
headers_contributor = get_headers(self.client, "contributor", "123")
294300
headers_editor = get_headers(self.client, "editor", "123")
295301
rv = self.client.post("/api/objects/", json=people, headers=headers_contributor)

0 commit comments

Comments
 (0)