Skip to content

Commit f35e43c

Browse files
committed
test: fix some test
1 parent 47e3bbd commit f35e43c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def test_apijson_get():
4141
... }'''
4242
>>> r = handler.post('/apijson/get', data=data, pre_call=pre_call_as("admin"), middlewares=[])
4343
>>> d = json_loads(r.data)
44-
>>> print(d.keys())
45-
dict_keys(['code', 'msg', 'user'])
44+
>>> print(d)
45+
{'code': 200, 'msg': 'success', 'user': {'username': 'admin', 'nickname': 'Administrator', 'email': 'admin@localhost', 'is_superuser': True, 'last_login': None, 'date_join': '2018-01-01 00:00:00', 'image': '', 'active': False, 'locked': False, 'deleted': False, 'auth_type': 'default', 'timezone': '', 'id': 1}}
4646
4747
>>> #query with id
4848
>>> data ='''{

0 commit comments

Comments
 (0)