summaryrefslogtreecommitdiff
path: root/opendc/api/v2
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-06-26 11:57:20 +0200
committerjc0b <j@jc0b.computer>2020-06-26 11:57:20 +0200
commitc15448fb6f3aacc8939f2714fc20304dde98cd28 (patch)
treece6a537bd0a7cfb2ed621e776def21e43b751b88 /opendc/api/v2
parent8ab2604d6ea2aa1efb9582f919d59dcdd0b8ea78 (diff)
Fixed broken endpoint test after topologies move
Diffstat (limited to 'opendc/api/v2')
-rw-r--r--opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py b/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py
index 67973268..132aa3d0 100644
--- a/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py
+++ b/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py
@@ -16,7 +16,7 @@ def test_add_simulation(client, mocker):
'topologyIds': []
})
mocker.patch.object(DB, 'update', return_value={})
- res = client.post('/api/v2/simulations/1/topologies/', json={'simulation': {'name': 'test simulation'}})
+ res = client.post('/api/v2/simulations/1/topologies/', json={'topology': {'name': 'test simulation'}})
assert 'datetimeCreated' in res.json['content']
assert 'datetimeEdit' in res.json['content']
assert 'topologyIds' in res.json['content']