From 1d52d088038552caff837ce080ae3bdae7742e06 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 15 May 2024 14:51:30 -0700 Subject: [PATCH] api_examples: Fix failing invitation links test. This system is too fragile with hardcoded IDs; we should be asserting that the preparatory requests succeeded to make these easier to debug. --- zerver/openapi/python_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py index 7ed39301ea..8ef9b1c53e 100644 --- a/zerver/openapi/python_examples.py +++ b/zerver/openapi/python_examples.py @@ -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)