diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-09-08 11:24:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 11:24:36 -0400 |
commit | aa483cb4c905bbe483ffe8e8a8f439655a57481b (patch) | |
tree | 4c361dd18b1731e371e55975350d408ddfa96efe /tests/rest/admin/test_federation.py | |
parent | Log values at DEBUG level with execute_values (#16281) (diff) | |
download | synapse-aa483cb4c905bbe483ffe8e8a8f439655a57481b.tar.xz |
Update ruff config (#16283)
Enable additional checks & clean-up unneeded configuration.
Diffstat (limited to 'tests/rest/admin/test_federation.py')
-rw-r--r-- | tests/rest/admin/test_federation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rest/admin/test_federation.py b/tests/rest/admin/test_federation.py index 4c7864c629..0e2824d1b5 100644 --- a/tests/rest/admin/test_federation.py +++ b/tests/rest/admin/test_federation.py @@ -510,7 +510,7 @@ class FederationTestCase(unittest.HomeserverTestCase): Args: number_destinations: Number of destinations to be created """ - for i in range(0, number_destinations): + for i in range(number_destinations): dest = f"sub{i}.example.com" self._create_destination(dest, 50, 50, 50, 100) @@ -690,7 +690,7 @@ class DestinationMembershipTestCase(unittest.HomeserverTestCase): self._check_fields(channel_desc.json_body["rooms"]) # test that both lists have different directions - for i in range(0, number_rooms): + for i in range(number_rooms): self.assertEqual( channel_asc.json_body["rooms"][i]["room_id"], channel_desc.json_body["rooms"][number_rooms - 1 - i]["room_id"], @@ -777,7 +777,7 @@ class DestinationMembershipTestCase(unittest.HomeserverTestCase): Args: number_rooms: Number of rooms to be created """ - for _ in range(0, number_rooms): + for _ in range(number_rooms): room_id = self.helper.create_room_as( self.admin_user, tok=self.admin_user_tok ) |