diff options
Diffstat (limited to 'web-server/opendc/api/v2/simulations/test_endpoint.py')
| -rw-r--r-- | web-server/opendc/api/v2/simulations/test_endpoint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web-server/opendc/api/v2/simulations/test_endpoint.py b/web-server/opendc/api/v2/simulations/test_endpoint.py index d23df74a..ae1b5a7c 100644 --- a/web-server/opendc/api/v2/simulations/test_endpoint.py +++ b/web-server/opendc/api/v2/simulations/test_endpoint.py @@ -12,12 +12,12 @@ def test_add_simulation(client, mocker): return_value={ '_id': '1', 'datetimeCreated': '000', - 'datetimeEdit': '000', + 'datetimeLastEdited': '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'] - assert 'datetimeEdit' in res.json['content'] + assert 'datetimeLastEdited' in res.json['content'] assert 'topologyIds' in res.json['content'] assert '200' in res.status |
