mirror of
https://github.com/simple-login/app.git
synced 2025-02-20 22:02:54 +08:00
add tests.utils.pretty()
This commit is contained in:
parent
d8c9078708
commit
dec7969ead
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import json
|
||||
|
||||
from flask import url_for
|
||||
|
||||
from app.extensions import db
|
||||
|
@ -21,3 +23,8 @@ def login(flask_client) -> User:
|
|||
assert b"/auth/logout" in r.data
|
||||
|
||||
return user
|
||||
|
||||
|
||||
def pretty(d):
|
||||
"""pretty print as json"""
|
||||
print(json.dumps(d, indent=2))
|
||||
|
|
Loading…
Reference in a new issue