Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_compat.py

        # For coverage
        class Model(BaseModel):
            foo: Union[str, Dict[str, Any]]
    
        fields = get_model_fields(Model)
        assert not is_scalar_field(fields[0])
    
    
    def test_get_model_fields_cached():
        class Model(BaseModel):
            foo: str
    
        non_cached_fields = get_model_fields(Model)
        non_cached_fields2 = get_model_fields(Model)
        cached_fields = get_cached_model_fields(Model)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 11 07:45:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top