Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testPath (0.03 sec)

  1. tests/test_path.py

    Sebastián Ramírez <******@****.***> 1766859550 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 20.5K bytes
    - Viewed (1)
  2. tests/test_jsonable_encoder.py

        class ModelWithPath(BaseModel):
            path: PurePath
    
            model_config = {"arbitrary_types_allowed": True}
    
        test_path = PurePath("/foo", "bar")
        obj = ModelWithPath(path=test_path)
        assert jsonable_encoder(obj) == {"path": str(test_path)}
    
    
    def test_encode_model_with_pure_posix_path():
        class ModelWithPath(BaseModel):
            path: PurePosixPath
    
    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