From 8e5d804a1213f473f9227639f86bdba1eefeb387 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Thu, 25 Jul 2024 16:17:03 -0500 Subject: Fix lints --- tests/rest/client/test_sync.py | 12 +++++++----- 1 file 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"][ -- cgit 1.4.1