Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_validlist_exclude_unset (0.1 sec)

  1. tests/test_serialize_response_model.py

    
    def test_validlist_exclude_unset():
        response = client.get("/items/validlist-exclude-unset")
        response.raise_for_status()
        assert response.json() == [
            {"aliased_name": "foo"},
            {"aliased_name": "bar", "price": 1.0},
            {"aliased_name": "baz", "price": 2.0, "owner_ids": [1, 2, 3]},
        ]
    
    
    def test_validdict_exclude_unset():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top