Fix issues when generating docs

This commit is contained in:
grossmj 2024-01-12 16:14:01 +11:00
parent 9e1a1337d4
commit 2789b3802a
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD
5 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,3 @@
{
"a": "b"
}

View File

@ -0,0 +1,3 @@
{
"a": "b"
}

View File

@ -576,7 +576,7 @@ Read :doc:`project_notifications` for more information.
Where to find the endpoints?
###########################
############################
A list of all endpoints is available: :doc:`endpoints`

View File

@ -105,7 +105,7 @@ snapshot.restored
A snapshot has been restored
.. literalinclude:: api/notifications/project.snapshot_restored.json
.. literalinclude:: api/notifications/snapshot.restored.json
log.error
---------

View File

@ -186,7 +186,9 @@ async def test_notification(controller_api, http_client, project, controller):
assert b'"cpu_usage_percent"' in response.body
assert b'{"action": "node.created", "event": {"a": "b"}}\n' in response.body
assert project.status == "opened"
controller.notification.project_emit("node.updated", {"a": "b"})
controller.notification.project_emit("node.deleted", {"a": "b"})
controller.notification.project_emit("snapshot.restored", {"a": "b"})
async def test_notification_invalid_id(controller_api):