mirror of
https://github.com/simonw/datasette.git
synced 2026-09-09 01:54:15 +02:00
Include SQLite version in datasette --version output, refs #1998
This commit is contained in:
parent
0337fba234
commit
d1fa64f5b0
2 changed files with 29 additions and 2 deletions
|
|
@ -231,7 +231,13 @@ def test_uninstall(run_module):
|
|||
def test_version():
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ["--version"])
|
||||
assert result.output == f"cli, version {__version__}\n"
|
||||
expected_sqlite_version = (
|
||||
sqlite3.connect(":memory:").execute("select sqlite_version()").fetchone()[0]
|
||||
)
|
||||
assert (
|
||||
result.output
|
||||
== f"cli, version {__version__} (SQLite {expected_sqlite_version})\n"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("invalid_port", ["-1", "0.5", "dog", "65536"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue