Skip to content

Commit

Permalink
api_examples: Fix failing invitation links test.
Browse files Browse the repository at this point in the history
This system is too fragile with hardcoded IDs; we should be asserting
that the preparatory requests succeeded to make these easier to debug.
  • Loading branch information
timabbott committed May 15, 2024
1 parent f54605e commit 1d52d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zerver/openapi/python_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def revoke_reusable_invitation_link(client: Client) -> None:
request = {
"invite_expires_in_minutes": 14400, # 10 days
"invite_as": 400,
"stream_ids": [1, 8, 9],
"stream_ids": [1],
}
result = client.call_endpoint(url="/invites/multiuse", method="POST", request=request)

Expand Down

0 comments on commit 1d52d08

Please sign in to comment.