Home / Function/ test_decimal_encoder_float() — fastapi Function Reference

test_decimal_encoder_float() — fastapi Function Reference

Architecture documentation for the test_decimal_encoder_float() function in test_jsonable_encoder.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  b43027ed_e50f_6a43_e781_3f00d47dcadb["test_decimal_encoder_float()"]
  80ce950d_4c72_e7d9_21bb_a5c60524786c["test_jsonable_encoder.py"]
  b43027ed_e50f_6a43_e781_3f00d47dcadb -->|defined in| 80ce950d_4c72_e7d9_21bb_a5c60524786c
  1ac1bc37_1a47_e7e2_9156_ab0473094700["jsonable_encoder()"]
  b43027ed_e50f_6a43_e781_3f00d47dcadb -->|calls| 1ac1bc37_1a47_e7e2_9156_ab0473094700
  style b43027ed_e50f_6a43_e781_3f00d47dcadb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_jsonable_encoder.py lines 280–282

def test_decimal_encoder_float():
    data = {"value": Decimal(1.23)}
    assert jsonable_encoder(data) == {"value": 1.23}

Domain

Subdomains

Frequently Asked Questions

What does test_decimal_encoder_float() do?
test_decimal_encoder_float() is a function in the fastapi codebase, defined in tests/test_jsonable_encoder.py.
Where is test_decimal_encoder_float() defined?
test_decimal_encoder_float() is defined in tests/test_jsonable_encoder.py at line 280.
What does test_decimal_encoder_float() call?
test_decimal_encoder_float() calls 1 function(s): jsonable_encoder.

Analyze Your Own Codebase

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

Try Supermodel Free