Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_nested_include_simple (0.16 sec)

  1. tests/test_response_model_include_exclude.py

                "ref": {"foo": "mixed_dict model foo", "bar": "mixed_dict model bar"},
                "baz": "mixed_dict model2 baz",
            },
        }
    
    
    client = TestClient(app)
    
    
    def test_nested_include_simple():
        response = client.get("/simple_include")
    
        assert response.status_code == 200, response.text
    
        assert response.json() == {
            "baz": "simple_include model2 baz",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 4K bytes
    - Viewed (0)
Back to top