Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_nested_include_mixed_dict (0.2 sec)

  1. tests/test_response_model_include_exclude.py

        assert response.json() == {
            "name": "mixed model3 name",
            "ref2": {
                "ref": {"foo": "mixed model foo", "bar": "mixed model bar"},
            },
        }
    
    
    def test_nested_include_mixed_dict():
        response = client.get("/mixed_dict")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "mixed_dict model3 name",
            "ref2": {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 4K bytes
    - Viewed (0)
Back to top