Allow "." in database filenames, closes #302

This commit is contained in:
Simon Willison 2018-06-21 08:21:09 -07:00
commit 120f20cd97
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
3 changed files with 15 additions and 4 deletions

View file

@ -3,6 +3,7 @@ from .fixtures import ( # noqa
app_client_shorter_time_limit,
app_client_larger_cache_size,
app_client_returned_rows_matches_page_size,
app_client_with_dot,
generate_compound_rows,
generate_sortable_rows,
METADATA,
@ -356,6 +357,11 @@ def test_database_page(app_client):
}] == data['tables']
def test_database_page_for_database_with_dot_in_name(app_client_with_dot):
response = app_client_with_dot.get("/fixtures.dot.json")
assert 200 == response.status
def test_custom_sql(app_client):
response = app_client.get(
'/fixtures.json?sql=select+content+from+simple_primary_key&_shape=objects'