mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user