API endpoint to get the locked status of a project

This commit is contained in:
grossmj committed 2022-09-03 22:58:44 +02:00
1 parent 3014bd0216
commit 27debfff8d
3 files changed
+29 -1

No files matched your search

@@ -511,6 +511,10 @@ async def test_lock_unlock(app: FastAPI, client: AsyncClient, project: Project,
for node in project.nodes.values():
assert node.locked is True
response = await client.get(app.url_path_for("locked_project", project_id=project.id))
assert response.status_code == status.HTTP_200_OK
assert response.json()["result"] is True
response = await client.post(app.url_path_for("unlock_project", project_id=project.id))
assert response.status_code == status.HTTP_204_NO_CONTENT