mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Return HTTP status code 204 in API when project successfully closed. Fixes #1689
This commit is contained in:
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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user