mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-12 20:02:30 -05:00
update black to 21.6b0 (#10197)
Reformat all files with the new version. Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
This commit is contained in:
parent
6f1a28de19
commit
8070b893db
17 changed files with 28 additions and 27 deletions
|
|
@ -26,7 +26,7 @@ from .. import unittest
|
|||
|
||||
|
||||
class AppServiceHandlerTestCase(unittest.TestCase):
|
||||
""" Tests the ApplicationServicesHandler. """
|
||||
"""Tests the ApplicationServicesHandler."""
|
||||
|
||||
def setUp(self):
|
||||
self.mock_store = Mock()
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ from tests.test_utils import make_awaitable
|
|||
|
||||
|
||||
class DirectoryTestCase(unittest.HomeserverTestCase):
|
||||
""" Tests the directory service. """
|
||||
"""Tests the directory service."""
|
||||
|
||||
def make_homeserver(self, reactor, clock):
|
||||
self.mock_federation = Mock()
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from tests.test_utils import make_awaitable
|
|||
|
||||
|
||||
class ProfileTestCase(unittest.HomeserverTestCase):
|
||||
""" Tests profile management. """
|
||||
"""Tests profile management."""
|
||||
|
||||
def make_homeserver(self, reactor, clock):
|
||||
self.mock_federation = Mock()
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from .. import unittest
|
|||
|
||||
|
||||
class RegistrationTestCase(unittest.HomeserverTestCase):
|
||||
""" Tests the RegistrationHandler. """
|
||||
"""Tests the RegistrationHandler."""
|
||||
|
||||
def make_homeserver(self, reactor, clock):
|
||||
hs_config = self.default_config()
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import tests.utils
|
|||
|
||||
|
||||
class SyncTestCase(tests.unittest.HomeserverTestCase):
|
||||
""" Tests Sync Handler. """
|
||||
"""Tests Sync Handler."""
|
||||
|
||||
def prepare(self, reactor, clock, hs):
|
||||
self.hs = hs
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from tests import unittest
|
|||
|
||||
|
||||
class EventStreamPermissionsTestCase(unittest.HomeserverTestCase):
|
||||
""" Tests event streaming (GET /events). """
|
||||
"""Tests event streaming (GET /events)."""
|
||||
|
||||
servlets = [
|
||||
events.register_servlets,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from tests import unittest
|
|||
|
||||
|
||||
class PresenceTestCase(unittest.HomeserverTestCase):
|
||||
""" Tests presence REST API. """
|
||||
"""Tests presence REST API."""
|
||||
|
||||
user_id = "@sid:red"
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class RoomBase(unittest.HomeserverTestCase):
|
|||
|
||||
|
||||
class RoomPermissionsTestCase(RoomBase):
|
||||
""" Tests room permissions. """
|
||||
"""Tests room permissions."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
rmcreator_id = "@notme:red"
|
||||
|
|
@ -377,7 +377,7 @@ class RoomPermissionsTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomsMemberListTestCase(RoomBase):
|
||||
""" Tests /rooms/$room_id/members/list REST events."""
|
||||
"""Tests /rooms/$room_id/members/list REST events."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
@ -416,7 +416,7 @@ class RoomsMemberListTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomsCreateTestCase(RoomBase):
|
||||
""" Tests /rooms and /rooms/$room_id REST events. """
|
||||
"""Tests /rooms and /rooms/$room_id REST events."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
@ -502,7 +502,7 @@ class RoomsCreateTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomTopicTestCase(RoomBase):
|
||||
""" Tests /rooms/$room_id/topic REST events. """
|
||||
"""Tests /rooms/$room_id/topic REST events."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
@ -566,7 +566,7 @@ class RoomTopicTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomMemberStateTestCase(RoomBase):
|
||||
""" Tests /rooms/$room_id/members/$user_id/state REST events. """
|
||||
"""Tests /rooms/$room_id/members/$user_id/state REST events."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
@ -790,7 +790,7 @@ class RoomJoinRatelimitTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomMessagesTestCase(RoomBase):
|
||||
""" Tests /rooms/$room_id/messages/$user_id/$msg_id REST events. """
|
||||
"""Tests /rooms/$room_id/messages/$user_id/$msg_id REST events."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
@ -838,7 +838,7 @@ class RoomMessagesTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomInitialSyncTestCase(RoomBase):
|
||||
""" Tests /rooms/$room_id/initialSync. """
|
||||
"""Tests /rooms/$room_id/initialSync."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
@ -879,7 +879,7 @@ class RoomInitialSyncTestCase(RoomBase):
|
|||
|
||||
|
||||
class RoomMessageListTestCase(RoomBase):
|
||||
""" Tests /rooms/$room_id/messages REST events. """
|
||||
"""Tests /rooms/$room_id/messages REST events."""
|
||||
|
||||
user_id = "@sid1:red"
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ PATH_PREFIX = "/_matrix/client/api/v1"
|
|||
|
||||
|
||||
class RoomTypingTestCase(unittest.HomeserverTestCase):
|
||||
""" Tests /rooms/$room_id/typing/$user_id REST API. """
|
||||
"""Tests /rooms/$room_id/typing/$user_id REST API."""
|
||||
|
||||
user_id = "@sid:red"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ from tests.utils import TestHomeServer, default_config
|
|||
|
||||
|
||||
class SQLBaseStoreTestCase(unittest.TestCase):
|
||||
""" Test the "simple" SQL generating methods in SQLBaseStore. """
|
||||
"""Test the "simple" SQL generating methods in SQLBaseStore."""
|
||||
|
||||
def setUp(self):
|
||||
self.db_pool = Mock(spec=["runInteraction"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue