test_json_encoder_error_with_pydanticv1() — fastapi Function Reference
Architecture documentation for the test_json_encoder_error_with_pydanticv1() function in test_jsonable_encoder.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD bef9957d_a583_5413_e7ac_583edeb454a2["test_json_encoder_error_with_pydanticv1()"] 80ce950d_4c72_e7d9_21bb_a5c60524786c["test_jsonable_encoder.py"] bef9957d_a583_5413_e7ac_583edeb454a2 -->|defined in| 80ce950d_4c72_e7d9_21bb_a5c60524786c 1ac1bc37_1a47_e7e2_9156_ab0473094700["jsonable_encoder()"] bef9957d_a583_5413_e7ac_583edeb454a2 -->|calls| 1ac1bc37_1a47_e7e2_9156_ab0473094700 style bef9957d_a583_5413_e7ac_583edeb454a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_jsonable_encoder.py lines 159–169
def test_json_encoder_error_with_pydanticv1():
with warnings.catch_warnings():
warnings.simplefilter("ignore", UserWarning)
from pydantic import v1
class ModelV1(v1.BaseModel):
name: str
data = ModelV1(name="test")
with pytest.raises(PydanticV1NotSupportedError):
jsonable_encoder(data)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_json_encoder_error_with_pydanticv1() do?
test_json_encoder_error_with_pydanticv1() is a function in the fastapi codebase, defined in tests/test_jsonable_encoder.py.
Where is test_json_encoder_error_with_pydanticv1() defined?
test_json_encoder_error_with_pydanticv1() is defined in tests/test_jsonable_encoder.py at line 159.
What does test_json_encoder_error_with_pydanticv1() call?
test_json_encoder_error_with_pydanticv1() 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