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.

api: Fix tests for avatar_url.

Tim Abbotta7890f046bef
diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py
index 079dbff3d36..f844e4b2533 100644
--- a/zerver/openapi/python_examples.py
+++ b/zerver/openapi/python_examples.py
@@ -233,7 +233,7 @@ def get_members(client: Client) -> None:
# {code_example|end}
validate_against_openapi_schema(result, "/users", "get", "200")
- assert result["members"][0]["avatar_url"] is None
+ assert result["members"][0]["avatar_url"] is not None
# {code_example|start}
# You may pass the `include_custom_profile_fields` query parameter as follows:
@@ -246,6 +246,7 @@ def get_members(client: Client) -> None:
assert member.get("profile_data", None) is None
else:
assert member.get("profile_data", None) is not None
+ assert member["avatar_url"] is None
@openapi_test_function("/users/{email}:get")