mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
codespell: Fix typos caught by codespell.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 7b4a74cc4d)
This commit is contained in:
committed by
Tim Abbott
parent
8e1ebede1b
commit
3a2a217fa0
@@ -2609,7 +2609,7 @@ class Stream(models.Model):
|
||||
message_retention_days = models.IntegerField(null=True, default=None)
|
||||
|
||||
# on_delete field here is set to RESTRICT because we don't want to allow
|
||||
# deleting a user group in case it is referenced by this settig.
|
||||
# deleting a user group in case it is referenced by this setting.
|
||||
# We are not using PROTECT since we want to allow deletion of user groups
|
||||
# when realm itself is deleted.
|
||||
can_remove_subscribers_group = models.ForeignKey(UserGroup, on_delete=models.RESTRICT)
|
||||
|
||||
@@ -35,7 +35,7 @@ helpers = ZulipTestCase()
|
||||
def openapi_param_value_generator(
|
||||
endpoints: List[str],
|
||||
) -> Callable[[Callable[[], Dict[str, object]]], Callable[[], Dict[str, object]]]:
|
||||
"""This decorator is used to register OpenAPI param value genarator functions
|
||||
"""This decorator is used to register OpenAPI param value generator functions
|
||||
with endpoints. Example usage:
|
||||
|
||||
@openapi_param_value_generator(["/messages/render:post"])
|
||||
|
||||
@@ -1549,7 +1549,7 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
|
||||
prereg_user.refresh_from_db()
|
||||
self.assertIsNotNone(prereg_user.created_user)
|
||||
|
||||
# Now attempt to re-use the same key.
|
||||
# Now attempt to reuse the same key.
|
||||
result = self.client_post("/accounts/register/", {"key": registration_key})
|
||||
self.assertEqual(result.status_code, 404)
|
||||
self.assert_in_response(
|
||||
|
||||
@@ -1407,7 +1407,7 @@ class MarkdownTest(ZulipTestCase):
|
||||
"<RealmFilter: zulip: a#(?P<id>[a-z]+) http://example.com/a/{id}>",
|
||||
],
|
||||
)
|
||||
# There should be 5 link matches in the topic, if ordered from the most priortized to the least:
|
||||
# There should be 5 link matches in the topic, if ordered from the most prioritized to the least:
|
||||
# 1. "http" (linkifier)
|
||||
# 2. "b#bar" (linkifier)
|
||||
# 3. "a#asd b#bar" (linkifier)
|
||||
|
||||
@@ -117,7 +117,7 @@ class TestReadReceipts(ZulipTestCase):
|
||||
self.assertTrue(hamlet.id not in result.json()["user_ids"])
|
||||
self.assertTrue(cordelia.id in result.json()["user_ids"])
|
||||
|
||||
# Reactivate hamlet and verify hamlet appears again in read recipts.
|
||||
# Reactivate hamlet and verify hamlet appears again in read receipts.
|
||||
do_reactivate_user(hamlet, acting_user=None)
|
||||
result = self.client_get(f"/json/messages/{message_id}/read_receipts")
|
||||
self.assert_json_success(result)
|
||||
|
||||
@@ -172,12 +172,12 @@ def check_prereg_key(
|
||||
|
||||
if realm_creation:
|
||||
assert isinstance(prereg_object, PreregistrationRealm)
|
||||
# Defensive assert to make sure no mix-up in how .status is set leading to re-use
|
||||
# Defensive assert to make sure no mix-up in how .status is set leading to reuse
|
||||
# of a PreregistrationRealm object.
|
||||
assert prereg_object.created_realm is None
|
||||
else:
|
||||
assert isinstance(prereg_object, PreregistrationUser)
|
||||
# Defensive assert to make sure no mix-up in how .status is set leading to re-use
|
||||
# Defensive assert to make sure no mix-up in how .status is set leading to reuse
|
||||
# of a PreregistrationUser object.
|
||||
assert prereg_object.created_user is None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user