Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

python_examples: Update comment and remove unnecessary assert.

Vector73f3bac5e3a3f9
diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py
index f3ba4d9770a..8f23eefd34d 100644
--- a/zerver/openapi/python_examples.py
+++ b/zerver/openapi/python_examples.py
@@ -824,10 +824,9 @@ def remove_subscriptions(client: Client) -> None:
validate_against_openapi_schema(result, "/users/me/subscriptions", "delete", "200")
- # test it was actually removed
- result = client.get_subscriptions()
- assert result["result"] == "success"
- streams = [s for s in result["subscriptions"] if s["name"] == "python-test"]
+ # Confirm user is no longer subscribed to "python-test".
+ subscriptions = client.get_subscriptions()["subscriptions"]
+ streams = [s for s in subscriptions if s["name"] == "python-test"]
assert len(streams) == 0
# {code_example|start}