Home / Function/ test_json_dump_dataclass() — flask Function Reference

test_json_dump_dataclass() — flask Function Reference

Architecture documentation for the test_json_dump_dataclass() function in test_basic.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  d5450a7d_c1d9_564f_767c_5b3273b4f126["test_json_dump_dataclass()"]
  85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"]
  d5450a7d_c1d9_564f_767c_5b3273b4f126 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f
  style d5450a7d_c1d9_564f_767c_5b3273b4f126 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_basic.py lines 1324–1330

def test_json_dump_dataclass(app, req_ctx):
    from dataclasses import make_dataclass

    Data = make_dataclass("Data", [("name", str)])
    value = app.json.dumps(Data("Flask"))
    value = app.json.loads(value)
    assert value == {"name": "Flask"}

Subdomains

Defined In

Frequently Asked Questions

What does test_json_dump_dataclass() do?
test_json_dump_dataclass() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_json_dump_dataclass() defined?
test_json_dump_dataclass() is defined in tests/test_basic.py at line 1324.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free