Added /-/actor.json - refs #699

Also added JSON highlighting to introspection documentation.
This commit is contained in:
Simon Willison 2020-05-30 18:51:00 -07:00
commit 1fc6ceefb9
4 changed files with 57 additions and 9 deletions

View file

@ -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