mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Include "asgi": "3.0" in /-/versions, refs #272
Mainly so you can tell if a Datasette instance is running on ASGI or not.
This commit is contained in:
parent
ff9efa668e
commit
b7a00dbde3
2 changed files with 2 additions and 0 deletions
|
|
@ -422,6 +422,7 @@ class Datasette:
|
|||
"full": sys.version,
|
||||
},
|
||||
"datasette": datasette_version,
|
||||
"asgi": "3.0",
|
||||
"sqlite": {
|
||||
"version": sqlite_version,
|
||||
"fts_versions": fts_versions,
|
||||
|
|
|
|||
|
|
@ -1197,6 +1197,7 @@ def test_plugins_json(app_client):
|
|||
def test_versions_json(app_client):
|
||||
response = app_client.get("/-/versions.json")
|
||||
assert "python" in response.json
|
||||
assert "3.0" == response.json.get("asgi")
|
||||
assert "version" in response.json["python"]
|
||||
assert "full" in response.json["python"]
|
||||
assert "datasette" in response.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue