mirror of https://github.com/zulip/zulip.git
openapi/python_examples: Add reactivate_user example.
This commit is contained in:
parent
4af7ad70e7
commit
59ac3ca95f
|
@ -226,6 +226,15 @@ def deactivate_user(client: Client) -> None:
|
|||
# {code_example|end}
|
||||
validate_against_openapi_schema(result, '/users/{user_id}', 'delete', '200')
|
||||
|
||||
@openapi_test_function("/users/{user_id}/reactivate:post")
|
||||
def reactivate_user(client: Client) -> None:
|
||||
# {code_example|start}
|
||||
# Reactivate a user
|
||||
user_id = 8
|
||||
result = client.reactivate_user_by_id(user_id)
|
||||
# {code_example|end}
|
||||
validate_against_openapi_schema(result, '/users/{user_id}/reactivate', 'post', '200')
|
||||
|
||||
@openapi_test_function("/users/{user_id}:patch")
|
||||
def update_user(client: Client) -> None:
|
||||
|
||||
|
@ -1105,6 +1114,7 @@ def test_users(client: Client) -> None:
|
|||
get_members(client)
|
||||
get_single_user(client)
|
||||
deactivate_user(client)
|
||||
reactivate_user(client)
|
||||
update_user(client)
|
||||
get_profile(client)
|
||||
update_notification_settings(client)
|
||||
|
|
Loading…
Reference in New Issue