Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_decimal_encoder_float (0.29 sec)

  1. tests/test_jsonable_encoder.py

    
    def test_encode_pure_path():
        test_path = PurePath("/foo", "bar")
    
        assert jsonable_encoder({"path": test_path}) == {"path": str(test_path)}
    
    
    def test_decimal_encoder_float():
        data = {"value": Decimal(1.23)}
        assert jsonable_encoder(data) == {"value": 1.23}
    
    
    def test_decimal_encoder_int():
        data = {"value": Decimal(2)}
    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