Skip to content

Commit

Permalink
Extra test for version on /-/versions, refs #1054
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 28, 2020
1 parent 7e30d87 commit 1a9f90f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datasette.plugins import DEFAULT_PLUGINS
from datasette.utils import detect_json1
from datasette.version import __version__
from .fixtures import ( # noqa
app_client,
app_client_no_files,
Expand Down Expand Up @@ -1290,6 +1291,7 @@ def test_versions_json(app_client):
assert "full" in response.json["python"]
assert "datasette" in response.json
assert "version" in response.json["datasette"]
assert response.json["datasette"]["version"] == __version__
assert "sqlite" in response.json
assert "version" in response.json["sqlite"]
assert "fts_versions" in response.json["sqlite"]
Expand Down

0 comments on commit 1a9f90f

Please sign in to comment.