mirror of https://github.com/zulip/zulip.git
api docs: Add comment about why the event queue example isn't tested.
This commit simply adds a comment in zerver/lib/api_test_helpers.py explaining why it isn't worth the effort to explicitly test the code example in api/get-events-from-queue.md.
This commit is contained in:
parent
a4b686297a
commit
73a1f8aa3e
|
@ -413,7 +413,11 @@ def test_streams(client):
|
|||
|
||||
def test_queues(client):
|
||||
# type: (Client) -> None
|
||||
|
||||
# Note that the example for api/get-events-from-queue is not tested.
|
||||
# Since, methods such as client.get_events() or client.call_on_each_message
|
||||
# are blocking calls and since the event queue backend is already
|
||||
# thoroughly tested in zerver/tests/test_event_queue.py, it is not worth
|
||||
# the effort to come up with asynchronous logic for testing those here.
|
||||
queue_id = register_queue(client)
|
||||
deregister_queue(client, queue_id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue