- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for test_optional_alias_by_alias (0.12 seconds)
-
tests/test_request_params/test_file/test_optional.py
assert response.json() == {"file_size": None} @pytest.mark.parametrize( "path", [ "/optional-bytes-alias", "/optional-uploadfile-alias", ], ) def test_optional_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 - 9.8K bytes - Click Count (0) -
tests/test_request_params/test_body/test_optional_str.py
assert response.status_code == 200 assert response.json() == {"p": None} @pytest.mark.parametrize( "path", ["/optional-alias", "/model-optional-alias"], ) def test_optional_alias_by_alias(path: str): client = TestClient(app) response = client.post(path, json={"p_alias": "hello"}) assert response.status_code == 200 assert response.json() == {"p": "hello"}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)