diff options
author | 2018-06-07 22:05:34 +0100 | |
---|---|---|
committer | 2018-06-07 22:05:34 +0100 | |
commit | e4c5fb8061b7b952622b05a929255855a2efe5d2 (patch) | |
tree | 25b19cc78a5416a3aa4bd09578996b1370f154d0 /tests | |
parent | Grab user avatars in bot API call (diff) |
Fix test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_api_bot_users.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_api_bot_users.py b/tests/test_api_bot_users.py index 85390210..05d19650 100644 --- a/tests/test_api_bot_users.py +++ b/tests/test_api_bot_users.py @@ -5,8 +5,12 @@ from tests import SiteTest, app class ApiBotUsersEndpoint(SiteTest): def test_api_user(self): """ Check insert user """ - single_data = json.dumps({'user_id': "1234", 'roles': ["5678"], "username": "test", "discriminator": "0000"}) - list_data = json.dumps([{'user_id': "1234", 'roles': ["5678"], "username": "test", "discriminator": "0000"}]) + single_data = json.dumps( + {'user_id': "1234", 'roles': ["5678"], "username": "test", "discriminator": "0000", "avatar": "http://some/url"} + ) + list_data = json.dumps([ + {'user_id': "1234", 'roles': ["5678"], "username": "test", "discriminator": "0000", "avatar": "http://some/url"} + ]) response = self.client.get('/bot/users', app.config['API_SUBDOMAIN'], headers=app.config['TEST_HEADER']) self.assertEqual(response.status_code, 405) |