test_jsonify_dicts() — flask Function Reference
Architecture documentation for the test_jsonify_dicts() function in test_json.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD d7501507_53cf_bae5_02e6_f475cc0e9710["test_jsonify_dicts()"] f9bd76f2_7704_622d_4d31_ee892fa7fced["test_json.py"] d7501507_53cf_bae5_02e6_f475cc0e9710 -->|defined in| f9bd76f2_7704_622d_4d31_ee892fa7fced af9b4ad1_d149_7221_6f38_bac5b994a400["loads()"] d7501507_53cf_bae5_02e6_f475cc0e9710 -->|calls| af9b4ad1_d149_7221_6f38_bac5b994a400 style d7501507_53cf_bae5_02e6_f475cc0e9710 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_json.py lines 78–102
def test_jsonify_dicts(app, client):
d = {
"a": 0,
"b": 23,
"c": 3.14,
"d": "t",
"e": "Hi",
"f": True,
"g": False,
"h": ["test list", 10, False],
"i": {"test": "dict"},
}
@app.route("/kw")
def return_kwargs():
return flask.jsonify(**d)
@app.route("/dict")
def return_dict():
return flask.jsonify(d)
for url in "/kw", "/dict":
rv = client.get(url)
assert rv.mimetype == "application/json"
assert flask.json.loads(rv.data) == d
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_jsonify_dicts() do?
test_jsonify_dicts() is a function in the flask codebase, defined in tests/test_json.py.
Where is test_jsonify_dicts() defined?
test_jsonify_dicts() is defined in tests/test_json.py at line 78.
What does test_jsonify_dicts() call?
test_jsonify_dicts() calls 1 function(s): loads.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free