Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_typeadapter (0.34 sec)

  1. tests/test_arbitrary_types.py

        client = TestClient(app)
        return client
    
    
    def test_get(client: TestClient):
        response = client.get("/")
        assert response.json() == {"custom_field": [1.0, 2.0, 3.0]}
    
    
    def test_typeadapter():
        # This test is only to confirm that Pydantic alone is working as expected
        from pydantic import (
            BaseModel,
            ConfigDict,
            PlainSerializer,
            TypeAdapter,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top