mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
403 for static directory listing, closes #740
This commit is contained in:
parent
25014ca25e
commit
89c4ddd482
2 changed files with 9 additions and 0 deletions
|
|
@ -114,6 +114,12 @@ def test_static(config_dir_client):
|
|||
assert "text/css" == response.headers["content-type"]
|
||||
|
||||
|
||||
def test_static_directory_browsing_not_allowed(config_dir_client):
|
||||
response = config_dir_client.get("/static/")
|
||||
assert 403 == response.status
|
||||
assert "403: Directory listing is not allowed" == response.text
|
||||
|
||||
|
||||
def test_databases(config_dir_client):
|
||||
response = config_dir_client.get("/-/databases.json")
|
||||
assert 200 == response.status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue