Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_list_of_models (0.25 sec)

  1. tests/test_response_model_data_filter_no_inheritance.py

    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
            "owner": {"email": "******@****.***"},
        }
    
    
    def test_list_of_models():
        response = client.get("/pets/")
        assert response.json() == [
            {"name": "Nibbler", "owner": {"email": "******@****.***"}},
            {"name": "Zoidberg", "owner": {"email": "******@****.***"}},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. tests/test_response_model_data_filter.py

    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
            "owner": {"email": "******@****.***"},
        }
    
    
    def test_list_of_models():
        response = client.get("/pets/")
        assert response.json() == [
            {"name": "Nibbler", "owner": {"email": "******@****.***"}},
            {"name": "Zoidberg", "owner": {"email": "******@****.***"}},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top