tests: update for ods being a view (#30865)

This commit is contained in:
Frédéric Péters 2019-03-01 16:05:55 +01:00
parent 24943e3136
commit 85112b4ec8
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ def test_ods(schema1, app, admin):
form.set('drilldown_x', 'innersubcategory')
response = form.submit('visualize')
assert 'big-msg-info' not in response
ods_response = response.form.submit('ods')
response = response.click(href='save')
response.form['name'] = 'test'
response = response.form.submit().follow()
ods_response = response.click(href='ods')
# skip first line of ODS table as it's a header not present in the HTML display
assert get_table(response) == get_ods_table(ods_response)[1:]
root = get_ods_document(ods_response)