From 981fd352885db54d100bf4a25909de2b4b1c4b81 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 3 Oct 2025 15:22:42 -0700 Subject: [PATCH] test_channel_creation: Fix misuse of test helper APIs. This mix of authentication and endpoints used here was incoherent, and throws an exception following the next commit. --- zerver/tests/test_channel_creation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zerver/tests/test_channel_creation.py b/zerver/tests/test_channel_creation.py index b21604893b..566b61f26b 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(),