mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 09:03:57 +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")
|
channel_creator = self.example_user("desdemona")
|
||||||
subdomain = "zulip"
|
subdomain = "zulip"
|
||||||
|
|
||||||
self.login_user(channel_creator)
|
|
||||||
new_channel_name = f"New {policy_key} channel"
|
new_channel_name = f"New {policy_key} channel"
|
||||||
result = self.api_post(
|
result = self.api_post(
|
||||||
channel_creator,
|
channel_creator,
|
||||||
"/json/users/me/subscriptions",
|
"/api/v1/users/me/subscriptions",
|
||||||
{
|
{
|
||||||
"subscriptions": orjson.dumps([{"name": new_channel_name}]).decode(),
|
"subscriptions": orjson.dumps([{"name": new_channel_name}]).decode(),
|
||||||
"is_web_public": orjson.dumps(policy_dict["is_web_public"]).decode(),
|
"is_web_public": orjson.dumps(policy_dict["is_web_public"]).decode(),
|
||||||
|
|||||||
Reference in New Issue
Block a user