fix: update tests accordingly

parent a04f58e9
Pipeline #1761 passed with stage
in 8 minutes and 5 seconds
......@@ -52,11 +52,11 @@ def test_prefs(client, app):
URL = url_for('api.prefs_ui')
response = client.get(URL)
assert response.json == {'language': 'en', 'dateFormat': None, 'pageLength': None}
assert response.json == {'language': 'en', 'dateFormat': None, 'pageLength': None, 'timezone': None}
response = client.put(URL, data=dict(language='fr', dateFormat='llll', pageLength=25))
response = client.put(URL, data=dict(language='fr', dateFormat='llll', pageLength=25, timezone='UTC'))
assert response.status_code == 201
assert response.json == {'language': 'fr', 'dateFormat': 'llll', 'pageLength': 25}
assert response.json == {'language': 'fr', 'dateFormat': 'llll', 'pageLength': 25, 'timezone': 'UTC'}
response = client.post(URL, data=dict(language='en'))
assert response.status_code == 200
......@@ -64,6 +64,6 @@ def test_prefs(client, app):
response = client.delete(URL, data=dict(pageLength=25))
assert response.status_code == 200
assert response.json == {'language': 'en', 'dateFormat': 'llll', 'pageLength': None}
assert response.json == {'language': 'en', 'dateFormat': 'llll', 'pageLength': None, 'timezone': 'UTC'}
logout(client)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment