summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/simulations/test_endpoint.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-01 14:46:02 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:20 +0200
commit586d1c723dbae95424b076f26da88fcd227f2f42 (patch)
tree4818fd7ba5daae7bc963bc88a537d749a9f5ae85 /web-server/opendc/api/v2/simulations/test_endpoint.py
parent88166f393012d9b231c36461556f92e99bb7f985 (diff)
Fix broken tests
Diffstat (limited to 'web-server/opendc/api/v2/simulations/test_endpoint.py')
-rw-r--r--web-server/opendc/api/v2/simulations/test_endpoint.py4
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