🌐 Add Korean translation for docs/ko/docs/tutorial/testing.md#4200
🌐 Add Korean translation for docs/ko/docs/tutorial/testing.md#4200kimjaeyoonn wants to merge 18 commits intofastapi:masterfrom kimjaeyoonn:ko/docs/tutorial/testing.md
docs/ko/docs/tutorial/testing.md#4200Conversation
Tutorial - Testing
Co-authored-by: daehyeon kim <[email protected]>
Co-authored-by: daehyeon kim <[email protected]>
Co-authored-by: daehyeon kim <[email protected]>
Co-authored-by: daehyeon kim <[email protected]>
Co-authored-by: daehyeon kim <[email protected]>
Co-authored-by: daehyeon kim <[email protected]>
Co-authored-by: daehyeon kim <[email protected]>
Thank you so much for reviewing. Your feedback has been accepted and updated.🤗 |
Tutorial - Testingdocs/ko/docs/tutorial/testing.md
|
|
||
| 확인해야 하는 표준 Python 표현식으로 간단한 `assert` 문을 작성합니다(표준 `pytest` 규칙). | ||
|
|
||
| ```파이썬 hl_lines="2 12 15-18" |
There was a problem hiding this comment.
| ```파이썬 hl_lines="2 12 15-18" | |
| ```Python hl_lines="2 12 15-18" |
Since it works as a syntax highlighter, it is not allowed to modify this.
| {!../../../docs_src/app_testing/tutorial001.py!} | ||
| ``` | ||
|
|
||
| !!! 팁 테스트 함수는 `async def`가 아닌 일반 `def`입니다. |
There was a problem hiding this comment.
| !!! 팁 테스트 함수는 `async def`가 아닌 일반 `def`입니다. | |
| !!! tip "팁" 테스트 함수는 `async def`가 아닌 일반 `def`입니다. |
I suggest you to check out #3167
|
|
||
| 이렇게 하면 복잡함 없이 `pytest`를 직접 사용할 수 있습니다. | ||
|
|
||
| !!! 참고 "기술적 세부 사항" `from starlette.testclient import TestClient`를 통해 사용할 수 있습니다. |
There was a problem hiding this comment.
| !!! 참고 "기술적 세부 사항" `from starlette.testclient import TestClient`를 통해 사용할 수 있습니다. | |
| !!! note "기술적 세부사항" `from starlette.testclient import TestClient`를 통해 사용할 수 있습니다. |
|
|
||
| **FastAPI**는 개발자 여러분의 편의를 위해 `fastapi.testclient`와 동일한 `starlette.testclient`를 제공합니다. 그러나 그것은 Starlette에서 직접 제공됩니다. | ||
|
|
||
| !!! 팁 FastAPI 애플리케이션(예: 비동기 데이터베이스 함수)에 요청을 보내는 것과 별도로 테스트에서 `async` 함수를 호출하려면 고급 자습서의 [Async Tests](../advanced/async-tests.md){internal-link target=_blank} 를 살펴보십시오. |
There was a problem hiding this comment.
| !!! 팁 FastAPI 애플리케이션(예: 비동기 데이터베이스 함수)에 요청을 보내는 것과 별도로 테스트에서 `async` 함수를 호출하려면 고급 자습서의 [Async Tests](../advanced/async-tests.md){internal-link target=_blank} 를 살펴보십시오. | |
| !!! tip "팁" FastAPI 애플리케이션(예: 비동기 데이터베이스 함수)에 요청을 보내는 것과 별도로 테스트에서 `async` 함수를 호출하려면 고급 자습서의 [Async Tests](../advanced/async-tests.md){internal-link target=_blank} 를 살펴보십시오. |
|
|
||
| **FastAPI** 앱에 `main.py` 파일이 있다고 가정해 보겠습니다. | ||
|
|
||
| ```파이썬 |
There was a problem hiding this comment.
| ```파이썬 | |
| ```Python |
|
|
||
| 데이터를 백엔드에 전달하는 방법(`requests` 또는 `TestClient` 사용)에 대한 자세한 내용은 <a href="https://requests.readthedocs.io" class="external-link" target="_blank를 확인하세요. ">문서 요청</a>을 확인하십시오. | ||
|
|
||
| !!! 정보 `TestClient`는 Pydantic 모델이 아닌 JSON으로 변환할 수 있는 데이터를 수신합니다. |
There was a problem hiding this comment.
| !!! 정보 `TestClient`는 Pydantic 모델이 아닌 JSON으로 변환할 수 있는 데이터를 수신합니다. | |
| !!! info "정보" `TestClient`는 Pydantic 모델이 아닌 JSON으로 변환할 수 있는 데이터를 수신합니다. | |
|
|
||
| <div class="termy"> | ||
|
|
||
| ```콘솔 |
There was a problem hiding this comment.
| ```콘솔 | |
| ```console |
|
|
||
| <div class="termy"> | ||
|
|
||
| ```콘솔 |
There was a problem hiding this comment.
| ```콘솔 | |
| ```console |
|
|
||
| <a href="https://www.starlette.io/testclient/" class="external-link" target="_blank">Starlette</a> 덕분에 **FastAPI** 응용 프로그램을 쉽고 즐겁게 테스트할 수 있습니다. . | ||
|
|
||
| <a href="https://requests.readthedocs.io" class="external-link" target="_blank">요청</a>을 기반으로 하므로 매우 친숙하고 직관적입니다. |
There was a problem hiding this comment.
| <a href="https://requests.readthedocs.io" class="external-link" target="_blank">요청</a>을 기반으로 하므로 매우 친숙하고 직관적입니다. | |
| <a href="https://requests.readthedocs.io" class="external-link" target="_blank">Requests</a>을 기반으로 하므로 매우 친숙하고 직관적입니다. |
Here, Requests is the name of a python library. So I think it'd be better not translate it.
|
|
||
| ## `TestClient` 사용 | ||
|
|
||
| `TestClient`를 가져옵니다. |
There was a problem hiding this comment.
| `TestClient`를 가져옵니다. | |
| `TestClient`를 임포트합니다. |
This PR translates ko/docs.tutorial/testing.md in Korean.
related: #2017
Please feel free to tell me if there's something to be improved.
Thank you.