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)