Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_subs: Fix the incorrect syntax in 'test_unarchive_stream'.

whilstsomebody26e5b916bc52
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index b3e6572d39a..1dd8e70bce0 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -1354,7 +1354,6 @@ class StreamAdminTest(ZulipTestCase):
def test_unarchive_stream(self) -> None:
iago = self.example_user("iago")
cordelia = self.example_user("cordelia")
- self.login_user(iago)
stream = self.make_stream("new_stream", is_web_public=True)
was_invite_only = stream.invite_only
@@ -1368,7 +1367,7 @@ class StreamAdminTest(ZulipTestCase):
data = {}
data["is_archived"] = "false"
with self.capture_send_event_calls(expected_num_events=3) as events:
- result = self.api_patch(iago, f"/json/streams/{stream.id}", info=data)
+ result = self.api_patch(iago, f"/api/v1/streams/{stream.id}", info=data)
self.assert_json_success(result)
# Clients will get this event only if they support