Skip to content

Commit

Permalink
Updated tests, refs #811
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 8, 2020
1 parent 3ce7f2e commit 2a8b398
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "Table With Space In Name",
Expand All @@ -79,6 +80,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "attraction_characteristic",
Expand All @@ -97,6 +99,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "binary_data",
Expand All @@ -106,6 +109,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "complex_foreign_keys",
Expand Down Expand Up @@ -134,6 +138,7 @@ def test_database_page(app_client):
},
],
},
"private": False,
},
{
"name": "compound_primary_key",
Expand All @@ -143,6 +148,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "compound_three_primary_keys",
Expand All @@ -152,6 +158,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "custom_foreign_key_label",
Expand All @@ -170,6 +177,7 @@ def test_database_page(app_client):
}
],
},
"private": False,
},
{
"name": "facet_cities",
Expand All @@ -188,6 +196,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "facetable",
Expand Down Expand Up @@ -217,6 +226,7 @@ def test_database_page(app_client):
}
],
},
"private": False,
},
{
"name": "foreign_key_references",
Expand All @@ -240,6 +250,7 @@ def test_database_page(app_client):
},
],
},
"private": False,
},
{
"name": "infinity",
Expand All @@ -249,6 +260,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "primary_key_multiple_columns",
Expand All @@ -267,6 +279,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "primary_key_multiple_columns_explicit_label",
Expand All @@ -285,6 +298,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "roadside_attraction_characteristics",
Expand All @@ -308,6 +322,7 @@ def test_database_page(app_client):
},
],
},
"private": False,
},
{
"name": "roadside_attractions",
Expand All @@ -326,6 +341,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "searchable",
Expand All @@ -344,6 +360,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "searchable_tags",
Expand All @@ -363,6 +380,7 @@ def test_database_page(app_client):
},
],
},
"private": False,
},
{
"name": "select",
Expand All @@ -372,6 +390,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "simple_primary_key",
Expand Down Expand Up @@ -405,6 +424,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "sortable",
Expand All @@ -422,6 +442,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "table/with/slashes.csv",
Expand All @@ -431,6 +452,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "tags",
Expand All @@ -449,6 +471,7 @@ def test_database_page(app_client):
],
"outgoing": [],
},
"private": False,
},
{
"name": "units",
Expand All @@ -458,6 +481,7 @@ def test_database_page(app_client):
"hidden": False,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "no_primary_key",
Expand All @@ -467,6 +491,7 @@ def test_database_page(app_client):
"hidden": True,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "searchable_fts",
Expand All @@ -476,6 +501,7 @@ def test_database_page(app_client):
"hidden": True,
"fts_table": "searchable_fts",
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "searchable_fts_content",
Expand All @@ -491,6 +517,7 @@ def test_database_page(app_client):
"hidden": True,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "searchable_fts_segdir",
Expand All @@ -507,6 +534,7 @@ def test_database_page(app_client):
"hidden": True,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
{
"name": "searchable_fts_segments",
Expand All @@ -516,6 +544,7 @@ def test_database_page(app_client):
"hidden": True,
"fts_table": None,
"foreign_keys": {"incoming": [], "outgoing": []},
"private": False,
},
] == data["tables"]

Expand All @@ -537,6 +566,7 @@ def test_no_files_uses_memory_database(app_client_no_files):
"tables_and_views_more": False,
"tables_and_views_truncated": [],
"views_count": 0,
"private": False,
}
} == response.json
# Try that SQL query
Expand Down

0 comments on commit 2a8b398

Please sign in to comment.