diff options
author | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-07-25 16:17:03 -0500 |
---|---|---|
committer | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-07-25 16:17:03 -0500 |
commit | 8e5d804a1213f473f9227639f86bdba1eefeb387 (patch) | |
tree | 61da9863ea5c0478619077bddab25d930a1cfb6b | |
parent | Add tests (diff) | |
download | synapse-8e5d804a1213f473f9227639f86bdba1eefeb387.tar.xz |
Fix lints
-rw-r--r-- | tests/rest/client/test_sync.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/rest/client/test_sync.py b/tests/rest/client/test_sync.py index 1fc0d18fdf..a7bd3e71bc 100644 --- a/tests/rest/client/test_sync.py +++ b/tests/rest/client/test_sync.py @@ -5995,7 +5995,7 @@ class SlidingSyncReceiptsExtensionTestCase(SlidingSyncBase): On incremental sync, we return all receipts for a given room but only for rooms that we request and are being returned in the Sliding Sync response. """ - + user1_id = self.register_user("user1", "pass") user1_tok = self.login(user1_id, "pass") user2_id = self.register_user("user2", "pass") @@ -6050,7 +6050,6 @@ class SlidingSyncReceiptsExtensionTestCase(SlidingSyncBase): ) self.assertEqual(channel.code, 200, channel.json_body) - sync_body = { "lists": {}, "room_subscriptions": { @@ -6065,7 +6064,7 @@ class SlidingSyncReceiptsExtensionTestCase(SlidingSyncBase): room_id4: { "required_state": [], "timeline_limit": 0, - } + }, }, "extensions": { "receipts": { @@ -6227,10 +6226,13 @@ class SlidingSyncReceiptsExtensionTestCase(SlidingSyncBase): # We should see the new receipt self.assertIncludes( - channel.json_body.get("extensions", {}).get("receipts", {}).get("rooms", {}).keys(), + channel.json_body.get("extensions", {}) + .get("receipts", {}) + .get("rooms", {}) + .keys(), {room_id}, exact=True, - message=channel.json_body, + message=str(channel.json_body), ) self.assertIncludes( channel.json_body["extensions"]["receipts"]["rooms"][room_id]["content"][ |