瀏覽代碼

fix tests

Bastien Sevajol 7 年之前
父節點
當前提交
093a2c7cb1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/unit/test_decorator.py

+ 2 - 2
tests/unit/test_decorator.py 查看文件

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