Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsOneOf (0.17 sec)

  1. tests/test_params_repr.py

        assert repr(Param(...)) == IsOneOf(
            "Param(PydanticUndefined)",
            # TODO: remove when deprecating Pydantic v1
            "Param(Ellipsis)",
        )
    
    
    def test_param_repr_number():
        assert repr(Param(1)) == "Param(1)"
    
    
    def test_param_repr_list():
        assert repr(Param([])) == "Param([])"
    
    
    def test_path_repr():
        assert repr(Path()) == IsOneOf(
            "Path(PydanticUndefined)",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.3K bytes
    - Viewed (0)
Back to top