diff options
author | David Robertson <davidr@element.io> | 2023-02-06 16:05:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 16:05:06 +0000 |
commit | 0f34abed7cb83c14bb100ef0ac37188acd5810c3 (patch) | |
tree | 37dff32fea8c96f7e1b4f4a1eafa0d020ec25e0a /tests/federation/transport/test_server.py | |
parent | Add missing type hints to tests.replication. (#14987) (diff) | |
download | synapse-0f34abed7cb83c14bb100ef0ac37188acd5810c3.tar.xz |
Type hints for tests.federation (#14991)
* Make tests.federation pass mypy * Untyped defs in tests.federation.transport * test methods return None * Remaining type hints in tests.federation * Changelog * Avoid an uncessary type-ignore
Diffstat (limited to 'tests/federation/transport/test_server.py')
-rw-r--r-- | tests/federation/transport/test_server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/federation/transport/test_server.py b/tests/federation/transport/test_server.py index cfd550a04b..c4231f4aa9 100644 --- a/tests/federation/transport/test_server.py +++ b/tests/federation/transport/test_server.py @@ -20,7 +20,7 @@ from tests.unittest import DEBUG, override_config class RoomDirectoryFederationTests(unittest.FederatingHomeserverTestCase): @override_config({"allow_public_rooms_over_federation": False}) - def test_blocked_public_room_list_over_federation(self): + def test_blocked_public_room_list_over_federation(self) -> None: """Test that unauthenticated requests to the public rooms directory 403 when allow_public_rooms_over_federation is False. """ @@ -31,7 +31,7 @@ class RoomDirectoryFederationTests(unittest.FederatingHomeserverTestCase): self.assertEqual(403, channel.code) @override_config({"allow_public_rooms_over_federation": True}) - def test_open_public_room_list_over_federation(self): + def test_open_public_room_list_over_federation(self) -> None: """Test that unauthenticated requests to the public rooms directory 200 when allow_public_rooms_over_federation is True. """ @@ -42,7 +42,7 @@ class RoomDirectoryFederationTests(unittest.FederatingHomeserverTestCase): self.assertEqual(200, channel.code) @DEBUG - def test_edu_debugging_doesnt_explode(self): + def test_edu_debugging_doesnt_explode(self) -> None: """Sanity check incoming federation succeeds with `synapse.debug_8631` enabled. Remove this when we strip out issue_8631_logger. |