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