Return HTTP status code 204 in API when project successfully closed. Fixes #1689

This commit is contained in:
grossmj committed 2019-11-11 15:32:57 +08:00
1 parent a98fc2d308
commit 992c60e3e0
2 files changed
+2 -3

No files matched your search

@@ -148,7 +148,7 @@ def test_delete_project_invalid_uuid(http_controller):
def test_close_project(http_controller, project):
with asyncio_patch("gns3server.controller.project.Project.close", return_value=True) as mock:
response = http_controller.post("/projects/{project_id}/close".format(project_id=project.id), example=True)
assert response.status == 201
assert response.status == 204
assert mock.called