Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for test_required_alias_by_alias (0.16 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_request_params/test_query/test_required_str.py

                    ),
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/required-alias",
            "/model-required-alias",
        ],
    )
    def test_required_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.get(f"{path}?p_alias=hello")
        assert response.status_code == 200, response.text
        assert response.json() == {"p": "hello"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  2. tests/test_request_params/test_form/test_required_str.py

                    "input": IsOneOf(None, {"p": "hello"}),
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-alias", "/model-required-alias"],
    )
    def test_required_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.post(path, data={"p_alias": "hello"})
        assert response.status_code == 200, response.text
        assert response.json() == {"p": "hello"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  3. tests/test_request_params/test_file/test_required.py

                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/required-bytes-alias",
            "/required-uploadfile-alias",
        ],
    )
    def test_required_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.post(path, files=[("p_alias", b"hello")])
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 5}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  4. tests/test_request_params/test_cookie/test_required_str.py

                    ),
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/required-alias",
            "/model-required-alias",
        ],
    )
    def test_required_alias_by_alias(path: str):
        client = TestClient(app)
        client.cookies.set("p_alias", "hello")
        response = client.get(path)
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.4K bytes
    - Click Count (0)
Back to Top