Skip to content

🌐 Add Korean translation for docs/ko/docs/tutorial/testing.md#4200

Closed
kimjaeyoonn wants to merge 18 commits intofastapi:masterfrom
kimjaeyoonn:ko/docs/tutorial/testing.md
Closed

🌐 Add Korean translation for docs/ko/docs/tutorial/testing.md#4200
kimjaeyoonn wants to merge 18 commits intofastapi:masterfrom
kimjaeyoonn:ko/docs/tutorial/testing.md

Conversation

@kimjaeyoonn
Copy link
Contributor

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.

@kimjaeyoonn kimjaeyoonn changed the title 🌐 Add Korean translation for Tutorial - Testing 🌐 Add Korean translation for Tutorial - Testing Nov 22, 2021
Copy link
Contributor

@DevDae DevDae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add the reviews because of word, 애플리케이션.

If you check 파이썬 한국어 번역 and search word, application, it is translated as 응용 프로그램 and because we follows the rules of that guide (check of it on #2017 ).

Big appreciate your works 🚀

@kimjaeyoonn
Copy link
Contributor Author

I add the reviews because of word, 애플리케이션.

If you check 파이썬 한국어 번역 and search word, application, it is translated as 응용 프로그램 and because we follows the rules of that guide (check of it on #2017 ).

Big appreciate your works 🚀

Thank you so much for reviewing. Your feedback has been accepted and updated.🤗

@tiangolo tiangolo changed the title 🌐 Add Korean translation for Tutorial - Testing 🌐 Add Korean translation for docs/ko/docs/tutorial/testing.md Dec 8, 2021
@tiangolo tiangolo added awaiting-review lang-all Translations lang-ko Korean translations labels Dec 8, 2021
@github-actions github-actions bot mentioned this pull request Dec 8, 2021
Copy link
Contributor

@NinaHwang NinaHwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, your translation is great! But I suggest you to preview the result(check out here) so that you can prevent any unintended format errors.


확인해야 하는 표준 Python 표현식으로 간단한 `assert` 문을 작성합니다(표준 `pytest` 규칙).

```파이썬 hl_lines="2 12 15-18"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```파이썬 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`입니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!!! 테스트 함수는 `async def`가 아닌 일반 `def`입니다.
!!! tip "팁" 테스트 함수는 `async def`가 아닌 일반 `def`입니다.

I suggest you to check out #3167


이렇게 하면 복잡함 없이 `pytest`를 직접 사용할 수 있습니다.

!!! 참고 "기술적 세부 사항" `from starlette.testclient import TestClient`를 통해 사용할 수 있습니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!!! 참고 "기술적 세부 사항" `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} 를 살펴보십시오.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!!! 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` 파일이 있다고 가정해 보겠습니다.

```파이썬
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```파이썬
```Python


데이터를 백엔드에 전달하는 방법(`requests` 또는 `TestClient` 사용)에 대한 자세한 내용은 <a href="https://requests.readthedocs.io" class="external-link" target="_blank를 확인하세요. ">문서 요청</a>을 확인하십시오.

!!! 정보 `TestClient`는 Pydantic 모델이 아닌 JSON으로 변환할 수 있는 데이터를 수신합니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!!! 정보 `TestClient`는 Pydantic 모델이 아닌 JSON으로 변환할 수 있는 데이터를 수신합니다.
!!! info "정보" `TestClient`는 Pydantic 모델이 아닌 JSON으로 변환할 수 있는 데이터를 수신합니다.


<div class="termy">

```콘솔
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```콘솔
```console


<div class="termy">

```콘솔
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```콘솔
```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>을 기반으로 하므로 매우 친숙하고 직관적입니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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`를 가져옵니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`TestClient`가져옵니다.
`TestClient`임포트합니다.

joonas-yoon added a commit to joonas-yoon/fastapi that referenced this pull request Aug 6, 2022
@kimjaeyoonn kimjaeyoonn closed this by deleting the head repository Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review lang-all Translations lang-ko Korean translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants