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.

Correctly hyphenate “web-public”.

Anders Kaseorgd58fece83223
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js
index e79882a7f5d..b81a39fd969 100644
--- a/frontend_tests/node_tests/narrow.js
+++ b/frontend_tests/node_tests/narrow.js
@@ -228,7 +228,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
),
);
- // for non web public stream for spectator
+ // for non web-public stream for spectator
page_params.is_spectator = true;
set_filter([["stream", "Rome"]]);
hide_all_empty_narrow_messages();
diff --git a/zerver/tests/test_message_edit.py b/zerver/tests/test_message_edit.py
index fdf3102510b..051b7cedc45 100644
--- a/zerver/tests/test_message_edit.py
+++ b/zerver/tests/test_message_edit.py
@@ -321,7 +321,7 @@ class EditMessageTest(EditMessageTestCase):
self.assertEqual(result.json()["message"]["id"], msg_id)
self.assertEqual(result.json()["message"]["flags"], [])
- # Send message to web public stream where hamlet is not subscribed.
+ # Send message to web-public stream where hamlet is not subscribed.
# This will test case of user having no `UserMessage` but having access
# to message.
web_public_stream = self.make_stream("web-public-stream", is_web_public=True)
@@ -335,7 +335,7 @@ class EditMessageTest(EditMessageTestCase):
self.assertEqual(result.json()["message"]["id"], web_public_stream_msg_id)
self.assertEqual(result.json()["message"]["flags"], ["read", "historical"])
- # Spectator should be able to fetch message in web public stream.
+ # Spectator should be able to fetch message in web-public stream.
self.logout()
result = self.client_get("/json/messages/" + str(web_public_stream_msg_id))
self.assert_json_success(result)
diff --git a/zerver/tests/test_thumbnail.py b/zerver/tests/test_thumbnail.py
index 00312cf769e..91eefcdf976 100644
--- a/zerver/tests/test_thumbnail.py
+++ b/zerver/tests/test_thumbnail.py
@@ -60,7 +60,7 @@ class ThumbnailTest(ZulipTestCase):
uri = json["uri"]
add_ratelimit_rule(86400, 1000, domain="spectator_attachment_access_by_file")
- # Deny file access for non web public stream
+ # Deny file access for non web-public stream
self.subscribe(self.example_user("hamlet"), "Denmark")
host = self.example_user("hamlet").realm.host
body = f"First message ...[zulip.txt](http://{host}" + uri + ")"
@@ -70,7 +70,7 @@ class ThumbnailTest(ZulipTestCase):
response = self.client_get("/thumbnail", {"url": uri[1:], "size": "full"})
self.assertEqual(response.status_code, 403)
- # Allow file access for web public stream
+ # Allow file access for web-public stream
self.login("hamlet")
self.make_stream("web-public-stream", is_web_public=True)
self.subscribe(self.example_user("hamlet"), "web-public-stream")
diff --git a/zerver/tests/test_upload.py b/zerver/tests/test_upload.py
index 768c3e453d7..8ddf7d5221c 100644
--- a/zerver/tests/test_upload.py
+++ b/zerver/tests/test_upload.py
@@ -253,7 +253,7 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):
self.assert_json_success(result)
add_ratelimit_rule(86400, 1000, domain="spectator_attachment_access_by_file")
- # Deny file access for non web public stream
+ # Deny file access for non web-public stream
self.subscribe(self.example_user("hamlet"), "Denmark")
host = self.example_user("hamlet").realm.host
body = f"First message ...[zulip.txt](http://{host}" + uri + ")"
@@ -263,7 +263,7 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):
response = self.client_get(uri)
self.assertEqual(response.status_code, 403)
- # Allow file access for web public stream
+ # Allow file access for web-public stream
self.login("hamlet")
self.make_stream("web-public-stream", is_web_public=True)
self.subscribe(self.example_user("hamlet"), "web-public-stream")