From 0e181b1bae81e7c7f0ff146e7e43e6e84b268efb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:44:25 +0000 Subject: [PATCH 1/2] Initial plan From dff4543a6cd7074935f8a9e08bbe0bfbfe18d0a9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:50:10 +0000 Subject: [PATCH 2/2] Remove Subscribe field from User test data Co-authored-by: zhenghaoz <9030120+zhenghaoz@users.noreply.github.com> --- tests/test_gorse.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_gorse.py b/tests/test_gorse.py index 390afc2..c82d0c7 100644 --- a/tests/test_gorse.py +++ b/tests/test_gorse.py @@ -28,13 +28,13 @@ def test_users(self): # Insert a user. r = client.insert_user({'UserId': '100', 'Labels': [ - 'a', 'b', 'c'], 'Subscribe': ['d', 'e'], 'Comment': 'comment'}) + 'a', 'b', 'c'], 'Comment': 'comment'}) self.assertEqual(r['RowAffected'], 1) # Get this user. user = client.get_user('100') self.assertDictEqual(user, {'UserId': '100', 'Labels': [ - 'a', 'b', 'c'], 'Subscribe': ['d', 'e'], 'Comment': 'comment'}) + 'a', 'b', 'c'], 'Subscribe': None, 'Comment': 'comment'}) # Delete this user. r = client.delete_user('100') @@ -48,7 +48,7 @@ def test_users(self): # Insert users users = [] for i in range(10): - users.append({'UserId': str(i), 'Labels': ['a', 'b', 'c'], 'Subscribe': ['d', 'e'], 'Comment': 'comment'}) + users.append({'UserId': str(i), 'Labels': ['a', 'b', 'c'], 'Subscribe': None, 'Comment': 'comment'}) r = client.insert_users(users) self.assertEqual(r['RowAffected'], 10) @@ -206,13 +206,13 @@ async def test_users(self): # Insert a user. r = await client.insert_user({'UserId': '100', 'Labels': [ - 'a', 'b', 'c'], 'Subscribe': ['d', 'e'], 'Comment': 'comment'}) + 'a', 'b', 'c'], 'Comment': 'comment'}) self.assertEqual(r['RowAffected'], 1) # Get this user. user = await client.get_user('100') self.assertDictEqual(user, {'UserId': '100', 'Labels': [ - 'a', 'b', 'c'], 'Subscribe': ['d', 'e'], 'Comment': 'comment'}) + 'a', 'b', 'c'], 'Subscribe': None, 'Comment': 'comment'}) # Delete this user. r = await client.delete_user('100') @@ -226,7 +226,7 @@ async def test_users(self): # Insert users users = [] for i in range(10): - users.append({'UserId': str(i), 'Labels': ['a', 'b', 'c'], 'Subscribe': ['d', 'e'], 'Comment': 'comment'}) + users.append({'UserId': str(i), 'Labels': ['a', 'b', 'c'], 'Subscribe': None, 'Comment': 'comment'}) r = await client.insert_users(users) self.assertEqual(r['RowAffected'], 10)