Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_encode_model_with_pure_path (0.14 sec)

  1. tests/test_jsonable_encoder.py

        encoded_instance = jsonable_encoder(
            instance, custom_encoder={MyEnum: custom_enum_encoder}
        )
        assert encoded_instance == custom_enum_encoder(instance)
    
    
    def test_encode_model_with_pure_path():
        class ModelWithPath(BaseModel):
            path: PurePath
    
            model_config = {"arbitrary_types_allowed": True}
    
        test_path = PurePath("/foo", "bar")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top