summaryrefslogtreecommitdiff
path: root/opendc/api/v2/simulations/test_endpoint.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-25 18:35:53 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-25 18:35:53 +0200
commit00597ec99f587557b88b9982a2c41a2cb8db8112 (patch)
treeb5a535951db7e0b99887ae6456e3410404982449 /opendc/api/v2/simulations/test_endpoint.py
parent4c272a01f38aba268dd8b8aa17dae4c9f56b087f (diff)
Add simulation put path
Diffstat (limited to 'opendc/api/v2/simulations/test_endpoint.py')
-rw-r--r--opendc/api/v2/simulations/test_endpoint.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/opendc/api/v2/simulations/test_endpoint.py b/opendc/api/v2/simulations/test_endpoint.py
index fe4ac6ed..d23df74a 100644
--- a/opendc/api/v2/simulations/test_endpoint.py
+++ b/opendc/api/v2/simulations/test_endpoint.py
@@ -7,7 +7,14 @@ def test_add_simulation_missing_parameter(client):
def test_add_simulation(client, mocker):
mocker.patch.object(DB, 'fetch_one', return_value={'_id': '1', 'authorizations': []})
- mocker.patch.object(DB, 'insert', return_value={'_id': '1', 'datetimeCreated': '000', 'datetimeEdit': '000', 'topologyIds': []})
+ mocker.patch.object(DB,
+ 'insert',
+ return_value={
+ '_id': '1',
+ 'datetimeCreated': '000',
+ 'datetimeEdit': '000',
+ 'topologyIds': []
+ })
mocker.patch.object(DB, 'update', return_value={})
res = client.post('/api/v2/simulations', json={'simulation': {'name': 'test simulation'}})
assert 'datetimeCreated' in res.json['content']