aboutsummaryrefslogtreecommitdiffstats
path: root/app_test.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-30 15:28:15 +0100
committerGravatar Gareth Coles <[email protected]>2018-03-30 15:28:15 +0100
commit6315e613c3ec7141653be5ef07c14473150d558f (patch)
tree4da50e777ae7fcbbdd1dbcb92255cd34ebe79467 /app_test.py
parentFlake8 (diff)
Fix 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 699a431a..264f6c33 100644
--- a/app_test.py
+++ b/app_test.py
@@ -197,8 +197,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, 'role': 5678})
- list_data = json.dumps([{'user_id': 1234, 'role': 5678}])
+ single_data = json.dumps({'user_id': 1234, 'roles': [5678]})
+ list_data = json.dumps([{'user_id': 1234, 'roles': [5678]}])
response = self.client.get('/user', app.config['API_SUBDOMAIN'], headers=headers)
self.assertEqual(response.status_code, 405)