aboutsummaryrefslogtreecommitdiffstats
path: root/app_test.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-10 23:03:38 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-10 23:03:38 +0100
commit33368cfe6238e1c3518fc41ef3e43305c07993a6 (patch)
tree54aa22891d45fa39d1f51c95768fec713619f1c8 /app_test.py
parentSnowflakes should be handled as strings (diff)
Fix unit tests
Diffstat (limited to 'app_test.py')
-rw-r--r--app_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app_test.py b/app_test.py
index c72c16a1..d94aeb5a 100644
--- a/app_test.py
+++ b/app_test.py
@@ -202,8 +202,8 @@ class ApiEndpoints(SiteTest):
""" Check insert user """
os.environ['BOT_API_KEY'] = 'abcdefg'
headers = {'X-API-Key': 'abcdefg', 'Content-Type': 'application/json'}
- 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"})
+ list_data = json.dumps([{'user_id': "1234", 'roles': ["5678"], "username": "test", "discriminator": "0000"}])
response = self.client.get('/user', app.config['API_SUBDOMAIN'], headers=headers)
self.assertEqual(response.status_code, 405)