mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
api docs: Migrate DELETE /users/me/subscriptions to OpenAPI.
This commit is contained in:
committed by
Tim Abbott
parent
14c9277095
commit
119b3c0bc4
@@ -235,8 +235,8 @@ def remove_subscriptions(client):
|
||||
)
|
||||
# {code_example|end}
|
||||
|
||||
fixture = FIXTURES['remove-subscriptions']
|
||||
test_against_fixture(result, fixture)
|
||||
validate_against_openapi_schema(result, '/users/me/subscriptions',
|
||||
'delete', '200')
|
||||
|
||||
# test it was actually removed
|
||||
result = client.list_subscriptions()
|
||||
@@ -252,7 +252,8 @@ def remove_subscriptions(client):
|
||||
)
|
||||
# {code_example|end}
|
||||
|
||||
test_against_fixture(result, fixture)
|
||||
validate_against_openapi_schema(result, '/users/me/subscriptions',
|
||||
'delete', '200')
|
||||
|
||||
def render_message(client):
|
||||
# type: (Client) -> None
|
||||
@@ -475,7 +476,7 @@ TEST_FUNCTIONS = {
|
||||
'/users:post': create_user,
|
||||
'get-profile': get_profile,
|
||||
'add-subscriptions': add_subscriptions,
|
||||
'remove-subscriptions': remove_subscriptions,
|
||||
'/users/me/subscriptions:delete': remove_subscriptions,
|
||||
'/users:get': get_members,
|
||||
'/register:post': register_queue,
|
||||
'/events:delete': deregister_queue,
|
||||
|
||||
Reference in New Issue
Block a user