浏览代码

fix tests for python 3.6

Bastien Sevajol 7 年前
父节点
当前提交
00b28d9323
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/unit/test_decorator.py

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

280
         assert 'original_response' in response
280
         assert 'original_response' in response
281
         assert response['original_response'] == json.dumps({
281
         assert response['original_response'] == json.dumps({
282
             'message': 'We are testing',
282
             'message': 'We are testing',
283
-            'code': None,
284
             'details': {},
283
             'details': {},
284
+            'code': None,
285
         })
285
         })
286
 
286
 
287
     def test_unit__exception_handled__ok__exception_error_dict(self):
287
     def test_unit__exception_handled__ok__exception_error_dict(self):
310
         assert 'original_response' in response
310
         assert 'original_response' in response
311
         assert response['original_response'] == json.dumps({
311
         assert response['original_response'] == json.dumps({
312
             'message': 'We are testing',
312
             'message': 'We are testing',
313
-            'code': None,
314
             'details': {'foo': 'bar'},
313
             'details': {'foo': 'bar'},
314
+            'code': None,
315
         })
315
         })
316
 
316
 
317
     def test_unit__exception_handler__error__error_content_malformed(self):
317
     def test_unit__exception_handler__error__error_content_malformed(self):