misc: formatting
This commit is contained in:
parent
89f6de1474
commit
46c4903731
|
@ -88,7 +88,8 @@ def test_visualization_json_api_duration(schema1, app, admin, visualization):
|
|||
# values from test_schem1/test_yearmonth_drilldown
|
||||
assert resp.json == {
|
||||
'axis': {'x_labels': ['01/2017', '02/2017', '03/2017', '04/2017', '05/2017', '06/2017', '07/2017', '08/2017']},
|
||||
'data': [536968800.0, 539258400.0, 541677600.0, 544352400.0, 546944400.0, 549622800.0, 552214800.0, 554893200.0],
|
||||
'data': [536968800.0, 539258400.0, 541677600.0, 544352400.0,
|
||||
546944400.0, 549622800.0, 552214800.0, 554893200.0],
|
||||
'format': '1',
|
||||
'unit': 'seconds',
|
||||
'measure': 'duration',
|
||||
|
@ -170,7 +171,9 @@ def test_import_visualization(schema1, app, admin, visualization):
|
|||
|
||||
resp = app.get('/', status=200)
|
||||
resp = resp.click('Import')
|
||||
resp.form['visualizations_json'] = Upload('export.json', json.dumps(visualizations).encode('utf-8'), 'application/json')
|
||||
resp.form['visualizations_json'] = Upload(
|
||||
'export.json',
|
||||
json.dumps(visualizations).encode('utf-8'), 'application/json')
|
||||
resp = resp.form.submit().follow()
|
||||
assert '2 visualizations have been created. A visualization has been updated.' in resp.text
|
||||
assert Visualization.objects.count() == 3
|
||||
|
|
Loading…
Reference in New Issue