Bulked out table test a bit

I'm closing #50 - more tests will be added in the future, but the framework
is neatly in place for them now.
pull/81/head
Simon Willison 2017-11-11 14:22:47 -08:00
rodzic e9e1def4c0
commit fa42a56c6a
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -44,6 +44,13 @@ def test_table_page(three_table_app_client):
data = response.json
assert data['query']['sql'] == 'select * from "simple_primary_key" order by pk limit 51'
assert data['query']['params'] == {}
assert data['rows'] == [{
'pk': '1',
'content': 'hello',
}, {
'pk': '2',
'content': 'world',
}]
THREE_TABLES = '''