summaryrefslogtreecommitdiff
path: root/opendc/api/v2/simulations/test_endpoint.py
diff options
context:
space:
mode:
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']