diff options
| author | jc0b <j@jc0b.computer> | 2020-06-26 11:57:20 +0200 |
|---|---|---|
| committer | jc0b <j@jc0b.computer> | 2020-06-26 11:57:20 +0200 |
| commit | c15448fb6f3aacc8939f2714fc20304dde98cd28 (patch) | |
| tree | ce6a537bd0a7cfb2ed621e776def21e43b751b88 /opendc/api | |
| parent | 8ab2604d6ea2aa1efb9582f919d59dcdd0b8ea78 (diff) | |
Fixed broken endpoint test after topologies move
Diffstat (limited to 'opendc/api')
| -rw-r--r-- | opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py | 2 |
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'] |
