Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_request_params/test_body/test_optional_str.py

                    "type": "missing",
                },
            ],
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    def test_optional_str_missing_empty_dict(path: str):
        client = TestClient(app)
        response = client.post(path, json={})
        assert response.status_code == 200, response.text
        assert response.json() == {"p": None}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 11.6K bytes
    - Viewed (0)
Back to top