mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
pypi packaging: Upgrade to release 0.4.6.
As a part of the upgrade, we had to update our API tests in zerver/lib/api_test_helpers.
This commit is contained in:
@@ -419,22 +419,12 @@ def register_queue(client):
|
||||
|
||||
# {code_example|start}
|
||||
# Register the queue
|
||||
result = client.register()
|
||||
# {code_example|end}
|
||||
|
||||
client.deregister(result['queue_id'])
|
||||
fixture = FIXTURES['register-queue']
|
||||
test_against_fixture(result, fixture, check_if_equal=['msg', 'result'],
|
||||
check_if_exists=['last_event_id', 'queue_id'])
|
||||
|
||||
# {code_example|start}
|
||||
# You may pass in one or more of the arguments documented below
|
||||
# as keyword arguments, like so:
|
||||
result = client.register(
|
||||
event_types=['messages']
|
||||
event_types=['messages', 'realm_emoji']
|
||||
)
|
||||
# {code_example|end}
|
||||
|
||||
fixture = FIXTURES['register-queue']
|
||||
test_against_fixture(result, fixture, check_if_equal=['msg', 'result'],
|
||||
check_if_exists=['last_event_id', 'queue_id'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user