Skip to content

Commit

Permalink
Updated test_database_page test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 22, 2017
1 parent 1c8638c commit c8e7c85
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,45 @@ def test_database_page(app_client):
assert [{
'columns': ['content'],
'name': '123_starts_with_digits',
'table_rows': 0,
'count': 0,
'hidden': False,
'foreign_keys': {'incoming': [], 'outgoing': []},
'label_column': None,
}, {
'columns': ['pk', 'content'],
'name': 'Table With Space In Name',
'table_rows': 0,
'count': 0,
'hidden': False,
'foreign_keys': {'incoming': [], 'outgoing': []},
'label_column': None,
}, {
'columns': ['pk1', 'pk2', 'content'],
'name': 'compound_primary_key',
'table_rows': 0,
'count': 0,
'hidden': False,
'foreign_keys': {'incoming': [], 'outgoing': []},
'label_column': None,
}, {
'columns': ['content'],
'name': 'no_primary_key',
'table_rows': 201,
'count': 201,
'hidden': False,
'foreign_keys': {'incoming': [], 'outgoing': []},
'label_column': None,
}, {
'columns': ['pk', 'content'],
'name': 'simple_primary_key',
'table_rows': 2,
'count': 2,
'hidden': False,
'foreign_keys': {'incoming': [], 'outgoing': []},
'label_column': None,
}, {
'columns': ['pk', 'content'],
'name': 'table/with/slashes.csv',
'table_rows': 1,
'count': 1,
'hidden': False,
'foreign_keys': {'incoming': [], 'outgoing': []},
'label_column': None,
}] == data['tables']


Expand Down

0 comments on commit c8e7c85

Please sign in to comment.