Removed .inspect() and /-/inspect.json

Refs #462

/-/inspect.json may return in some shape in #465
This commit is contained in:
Simon Willison 2019-05-16 07:14:10 -07:00
commit 909e66dfdb
2 changed files with 1 additions and 45 deletions

View file

@ -1063,11 +1063,6 @@ def test_metadata_json(app_client):
assert METADATA == response.json
def test_inspect_json(app_client):
response = app_client.get("/-/inspect.json")
assert app_client.ds.inspect() == response.json
def test_plugins_json(app_client):
response = app_client.get("/-/plugins.json")
assert [
@ -1411,9 +1406,7 @@ def test_ttl_parameter(app_client, path, expected_cache_control):
)
def test_hash_parameter(app_client_with_hash, path, expected_redirect):
# First get the current hash for the fixtures database
current_hash = app_client_with_hash.get("/-/inspect.json").json["fixtures"]["hash"][
:7
]
current_hash = app_client_with_hash.ds.databases["fixtures"].hash[:7]
response = app_client_with_hash.get(path, allow_redirects=False)
assert response.status == 302
location = response.headers["Location"]