add tests.utils.pretty()

This commit is contained in:
Son NK 2020-11-15 19:34:13 +01:00
parent d8c9078708
commit dec7969ead
1 changed files with 7 additions and 0 deletions

View File

@ -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))