Browse Source

fix tests

Bastien Sevajol 6 years ago
parent
commit
093a2c7cb1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/unit/test_decorator.py

+ 2 - 2
tests/unit/test_decorator.py View File

@@ -276,7 +276,7 @@ class TestExceptionHandlerControllerWrapper(Base):
276 276
         response = func(42)
277 277
         assert HTTPStatus.INTERNAL_SERVER_ERROR == response.status_code
278 278
         assert {
279
-                   'details': {},
279
+                   'details': {'error_detail': {}},
280 280
                    'message': 'We are testing',
281 281
                    'code': None,
282 282
                } == json.loads(response.body)
@@ -305,7 +305,7 @@ class TestExceptionHandlerControllerWrapper(Base):
305 305
         assert response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR
306 306
         assert {
307 307
             'message': 'We are testing',
308
-            'details': {'foo': 'bar'},
308
+            'details': {'error_detail': {'foo': 'bar'}},
309 309
             'code': None,
310 310
         } == json.loads(response.body)
311 311