- Sort Score
- Result 10 results
- Languages All
Results 531 - 540 of 924 for docs_src (0.07 sec)
-
docs/ko/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` `main.py`는 아래와 같아야 합니다: {* ../../docs_src/async_tests/main.py *} `test_main.py` 파일은 `main.py`에 대한 테스트가 있을 텐데, 다음과 같을 수 있습니다: {* ../../docs_src/async_tests/test_main.py *} ## 실행하기 아래의 명령어로 테스트 코드를 실행합니다: <div class="termy"> ```console $ pytest ---> 100% ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 10 11:03:16 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
Isso significa que você pode instalar a versão mais recente do Pydantic v2 e importar e usar os componentes antigos do Pydantic v1 a partir desse submódulo, como se tivesse o Pydantic v1 antigo instalado. {* ../../docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py hl[1,4] *} ### Suporte do FastAPI ao Pydantic v1 no v2 { #fastapi-support-for-pydantic-v1-in-v2 }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 5.8K bytes - Viewed (0) -
tests/test_tutorial/test_advanced_middleware/test_tutorial002.py
from fastapi.testclient import TestClient from docs_src.advanced_middleware.tutorial002_py39 import app def test_middleware(): client = TestClient(app, base_url="http://example.com") response = client.get("/") assert response.status_code == 200, response.text client = TestClient(app, base_url="http://subdomain.example.com") response = client.get("/") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 575 bytes - Viewed (0) -
docs/fr/docs/advanced/response-directly.md
Pour ces cas, vous pouvez spécifier un appel à `jsonable_encoder` pour convertir vos données avant de les passer à une réponse : {* ../../docs_src/response_directly/tutorial001.py hl[6:7,21:22] *} /// note | Détails techniques Vous pouvez aussi utiliser `from starlette.responses import JSONResponse`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 3.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-fields.md
## `Field` 임포트 먼저 이를 임포트해야 합니다: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | 경고 `Field`는 다른 것들처럼 (`Query`, `Path`, `Body` 등) `fastapi`에서가 아닌 `pydantic`에서 바로 임포트 되는 점에 주의하세요. /// ## 모델 어트리뷰트 선언 그 다음 모델 어트리뷰트와 함께 `Field`를 사용할 수 있습니다: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/extra-data-types.md
## 예시 위의 몇몇 자료형을 매개변수로 사용하는 *경로 작동* 예시입니다. {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *} 함수 안의 매개변수가 그들만의 데이터 자료형을 가지고 있으며, 예를 들어, 다음과 같이 날짜를 조작할 수 있음을 참고하십시오:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.9K bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main_a.py
from docs_src.app_testing.app_a_py39.test_main import client, test_read_main def test_main(): test_read_main() def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/": { "get": {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 830 bytes - Viewed (0) -
docs/de/docs/advanced/testing-websockets.md
Sie können den schon bekannten `TestClient` zum Testen von WebSockets verwenden. Dazu verwenden Sie den `TestClient` in einer `with`-Anweisung, eine Verbindung zum WebSocket herstellend: {* ../../docs_src/app_testing/tutorial002_py39.py hl[27:31] *} /// note | HinweisRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 529 bytes - Viewed (0) -
docs/es/docs/tutorial/middleware.md
* Luego devuelve la `response` generada por la correspondiente *path operation*. * Puedes entonces modificar aún más la `response` antes de devolverla. {* ../../docs_src/middleware/tutorial001_py39.py hl[8:9,11,14] *} /// tip | ConsejoRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.3K bytes - Viewed (0) -
docs/en/docs/tutorial/request-form-models.md
/// ## Pydantic Models for Forms { #pydantic-models-for-forms } You just need to declare a **Pydantic model** with the fields you want to receive as **form fields**, and then declare the parameter as `Form`: {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *} **FastAPI** will **extract** the data for **each field** from the **form data** in the request and give you the Pydantic model you defined.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.2K bytes - Viewed (0)