mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Added /-/actor.json - refs #699
Also added JSON highlighting to introspection documentation.
This commit is contained in:
parent
9315bacf6f
commit
1fc6ceefb9
4 changed files with 57 additions and 9 deletions
|
|
@ -539,3 +539,10 @@ async def test_permission_allowed(app_client, action, expected):
|
|||
{"id": "actor"}, action, default=None
|
||||
)
|
||||
assert expected == actual
|
||||
|
||||
|
||||
def test_actor_json(app_client):
|
||||
assert {"actor": None} == app_client.get("/-/actor.json").json
|
||||
assert {"actor": {"id": "bot2", "1+1": 2}} == app_client.get(
|
||||
"/-/actor.json/?_bot2=1"
|
||||
).json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue