diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-30 10:32:21 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:42:26 +0200 |
| commit | 0df6d7e388ec9bd5a514b2b75de8d95550b48802 (patch) | |
| tree | 5751ac6f89a9b331c18c2231e771cc8b5e8fdcbb /web-server/opendc/api/v2/simulations/simulationId/topologies | |
| parent | 690818051d0c9768cdaf735acf77ea9e98f00b38 (diff) | |
Format codebase
Diffstat (limited to 'web-server/opendc/api/v2/simulations/simulationId/topologies')
| -rw-r--r-- | web-server/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/web-server/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py b/web-server/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py index 10b5e3c9..cc26e1b0 100644 --- a/web-server/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py +++ b/web-server/opendc/api/v2/simulations/simulationId/topologies/test_endpoint.py @@ -6,7 +6,16 @@ def test_add_topology_missing_parameter(client): def test_add_topology(client, mocker): - mocker.patch.object(DB, 'fetch_one', return_value={'_id': '1', 'authorizations': [{'simulationId': '1', 'authorizationLevel': 'OWN'}], 'topologyIds': []}) + mocker.patch.object(DB, + 'fetch_one', + return_value={ + '_id': '1', + 'authorizations': [{ + 'simulationId': '1', + 'authorizationLevel': 'OWN' + }], + 'topologyIds': [] + }) mocker.patch.object(DB, 'insert', return_value={ @@ -22,5 +31,6 @@ def test_add_topology(client, mocker): assert 'topologyIds' in res.json['content'] assert '200' in res.status + def test_add_topology_no_authorizations(client, mocker): - pass
\ No newline at end of file + pass |
