From fa42a56c6a0fa62529eabf2d363bd3008ce23094 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 11 Nov 2017 14:22:47 -0800 Subject: [PATCH] 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. --- tests/test_app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_app.py b/tests/test_app.py index ac3f6b76..d6c1e7df 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -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 = '''