Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_channel_creation: Fix misuse of test helper APIs.
Tim Abbott981fd352885d
diff --git a/zerver/tests/test_channel_creation.py b/zerver/tests/test_channel_creation.pyindex b21604893bc..566b61f26b9 100644--- a/zerver/tests/test_channel_creation.py+++ b/zerver/tests/test_channel_creation.py@@ -974,11 +974,10 @@ class TestCreateStreams(ZulipTestCase):channel_creator = self.example_user("desdemona")subdomain = "zulip"- self.login_user(channel_creator)new_channel_name = f"New {policy_key} channel"result = self.api_post(channel_creator,- "/json/users/me/subscriptions",+ "/api/v1/users/me/subscriptions",{"subscriptions": orjson.dumps([{"name": new_channel_name}]).decode(),"is_web_public": orjson.dumps(policy_dict["is_web_public"]).decode(),