Skip to content

Commit 1f623c9

Browse files
authored
Merge pull request #142 from PROCOLLAB-github/feature/fix-code-format2
Add/edit dockstrings part two
2 parents 68d403f + b9c6c1b commit 1f623c9

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

chats/tests/test_direct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def test_send_new_message_direct_with_myself(
5050
self.assertEqual(data["content"]["is_edited"], message["is_edited"])
5151
self.assertFalse(message["is_deleted"])
5252

53-
async def test_send_new_message_to_orher_chat(self): # Message in someone else's chat
53+
async def test_send_new_message_to_other_chat(self): # Message in someone else's chat
5454
await sync_to_async(get_user_model().objects.create)(**TEST_USER2)
5555
user = await sync_to_async(get_user_model().objects.create)(**TEST_USER3)
5656
communicator = WebsocketCommunicator(ChatConsumer.as_asgi(), "/ws/chat/")
@@ -347,7 +347,7 @@ async def test_edit_other_message(
347347
self.assertFalse(direct_message.is_edited)
348348
self.assertTrue(direct_message.text != text)
349349

350-
async def test_edit_other_message_in_other_char(
350+
async def test_edit_other_message_in_other_chat(
351351
self,
352352
):
353353
await sync_to_async(get_user_model().objects.create)(**TEST_USER2)

core/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33

44
class Email:
5+
"""
6+
Send email messages
7+
"""
58
@staticmethod
69
def send_email(data):
710
email = EmailMultiAlternatives(

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def main():
1010
from django.core.management import execute_from_command_line
1111
except ImportError as exc:
1212
raise ImportError(
13-
"Couэldn't import Django. Are you sure it's installed and "
13+
"Couldn't import Django. Are you sure it's installed and "
1414
"available on your PYTHONPATH environment variable? Did you "
1515
"forget to activate a virtual environment?"
1616
) from exc

0 commit comments

Comments
 (0)