Return a boolean directly from API endpoint for project locked status

This commit is contained in:
grossmj committed 2022-09-03 23:08:13 +02:00
1 parent 27debfff8d
commit 2976e220dc
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -513,7 +513,7 @@ async def test_lock_unlock(app: FastAPI, client: AsyncClient, project: Project,
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
assert response.json() 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