fix auth data in controller test fixture
remove default admin role
return jwt identity as int instead of str
@@ -7,8 +7,8 @@ from tensorhive.app.web.AppServer import API_SERVER, API
API_URI = 'http://' + API_SERVER.HOST + ':' + str(API_SERVER.PORT) + '/' + API.URL_PREFIX
HEADERS = {'Authorization': 'Bearer XXX', 'Content-Type': 'application/json'}
-patch('flask_jwt_extended.get_jwt_identity', lambda: '1').start()
-patch('flask_jwt_extended.get_jwt_claims', lambda: {'roles': ['admin', 'user']}).start()
+patch('flask_jwt_extended.get_jwt_identity', lambda: 1).start()
+patch('flask_jwt_extended.get_jwt_claims', lambda: {'roles': ['user']}).start()
patch('flask_jwt_extended.view_decorators.verify_jwt_in_request', lambda: None).start()
