mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Allow "." in database filenames, closes #302
This commit is contained in:
parent
97ae66ccab
commit
120f20cd97
3 changed files with 15 additions and 4 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue