summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/tests/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/dashboard/tests/helper.py')
-rw-r--r--src/pybind/mgr/dashboard/tests/helper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pybind/mgr/dashboard/tests/helper.py b/src/pybind/mgr/dashboard/tests/helper.py
index 1a8ea7a381b..2efeba816bb 100644
--- a/src/pybind/mgr/dashboard/tests/helper.py
+++ b/src/pybind/mgr/dashboard/tests/helper.py
@@ -40,7 +40,11 @@ class ControllerTestCase(helper.CPWebCase):
cherrypy.tools.authenticate = AuthManagerTool()
cherrypy.tools.dashboard_exception_handler = HandlerWrapperTool(dashboard_exception_handler,
priority=31)
- cherrypy.config.update({'error_page.default': json_error_page})
+ cherrypy.config.update({
+ 'error_page.default': json_error_page,
+ 'tools.json_in.on': True,
+ 'tools.json_in.force': False
+ })
super(ControllerTestCase, self).__init__(*args, **kwargs)
def _request(self, url, method, data=None):