summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py')
-rw-r--r--web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py b/web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py
index e54052aa..e8cfdd99 100644
--- a/web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py
+++ b/web-server/opendc/api/v2/topologies/topologyId/test_endpoint.py
@@ -43,4 +43,9 @@ PUT /topologies/{topologyId}
'''
DELETE /topologies/{topologyId}
-''' \ No newline at end of file
+'''
+
+def test_delete_topology(client, mocker):
+ mocker.patch.object(DB, 'fetch_one', return_value={'_id': '1'})
+ res = client.delete('/api/v2/topologies/1')
+ assert '200' in res.status \ No newline at end of file