test_json_attr() — flask Function Reference
Architecture documentation for the test_json_attr() function in test_json.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 8426a68a_0806_0d70_26bb_4e267bc1ce15["test_json_attr()"] f9bd76f2_7704_622d_4d31_ee892fa7fced["test_json.py"] 8426a68a_0806_0d70_26bb_4e267bc1ce15 -->|defined in| f9bd76f2_7704_622d_4d31_ee892fa7fced style 8426a68a_0806_0d70_26bb_4e267bc1ce15 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_json.py lines 196–207
def test_json_attr(app, client):
@app.route("/add", methods=["POST"])
def add():
json = flask.request.get_json()
return str(json["a"] + json["b"])
rv = client.post(
"/add",
data=flask.json.dumps({"a": 1, "b": 2}),
content_type="application/json",
)
assert rv.data == b"3"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_json_attr() do?
test_json_attr() is a function in the flask codebase, defined in tests/test_json.py.
Where is test_json_attr() defined?
test_json_attr() is defined in tests/test_json.py at line 196.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free