mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
UI for restricting permissions on /-/create-token, refs #1947
Also fixes test failures I introduced in #1951
This commit is contained in:
parent
fdf7c27b54
commit
d98a8effb1
4 changed files with 150 additions and 47 deletions
|
|
@ -270,7 +270,7 @@ def test_cli_create_token(app_client, expires):
|
|||
token = result.output.strip()
|
||||
assert token.startswith("dstok_")
|
||||
details = app_client.ds.unsign(token[len("dstok_") :], "token")
|
||||
expected_keys = {"a", "token", "t"}
|
||||
expected_keys = {"a", "t"}
|
||||
if expires:
|
||||
expected_keys.add("d")
|
||||
assert details.keys() == expected_keys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue