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.
This commit is contained in:
Tim Abbott
2025-10-03 15:22:42 -07:00
parent 6469fc5395
commit 981fd35288

View File

@@ -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(),