mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Renamed /:memory: to /_memory, with redirects - closes #1205
This commit is contained in:
parent
382e9ecd1d
commit
1600d2a3ec
10 changed files with 65 additions and 34 deletions
|
|
@ -30,12 +30,12 @@ def test_serve_with_get(tmp_path_factory):
|
|||
"--plugins-dir",
|
||||
str(plugins_dir),
|
||||
"--get",
|
||||
"/:memory:.json?sql=select+sqlite_version()",
|
||||
"/_memory.json?sql=select+sqlite_version()",
|
||||
],
|
||||
)
|
||||
assert 0 == result.exit_code, result.output
|
||||
assert {
|
||||
"database": ":memory:",
|
||||
"database": "_memory",
|
||||
"truncated": False,
|
||||
"columns": ["sqlite_version()"],
|
||||
}.items() <= json.loads(result.output).items()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue