Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for test_model_optional_str_missing (0.17 seconds)

  1. tests/test_request_params/test_body/test_optional_str.py

    def test_optional_str_missing():
        client = TestClient(app)
        response = client.post("/optional-str")
        assert response.status_code == 200, response.text
        assert response.json() == {"p": None}
    
    
    def test_model_optional_str_missing():
        client = TestClient(app)
        response = client.post("/model-optional-str")
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  2. tests/test_request_params/test_body/test_optional_list.py

    Sebastián Ramírez <******@****.***> 1771322354 -0800
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 12.6K bytes
    - Click Count (0)
Back to Top