]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
๐ŸŒ Add Korean translation for `docs/ko/docs/advanced/testing-websockets.md` (#12739)
authorChol_rang <vhtmxj154@naver.com>
Sat, 9 Nov 2024 12:18:47 +0000 (21:18 +0900)
committerGitHub <noreply@github.com>
Sat, 9 Nov 2024 12:18:47 +0000 (12:18 +0000)
docs/ko/docs/advanced/testing-websockets.md [new file with mode: 0644]

diff --git a/docs/ko/docs/advanced/testing-websockets.md b/docs/ko/docs/advanced/testing-websockets.md
new file mode 100644 (file)
index 0000000..f1580c3
--- /dev/null
@@ -0,0 +1,15 @@
+# WebSocket ํ…Œ์ŠคํŠธํ•˜๊ธฐ
+
+`TestClient`๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ WebSocket์„ ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
+
+์ด๋ฅผ ์œ„ํ•ด `with` ๋ฌธ์—์„œ `TestClient`๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ WebSocket์— ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค:
+
+```Python hl_lines="27-31"
+{!../../docs_src/app_testing/tutorial002.py!}
+```
+
+/// note | ์ฐธ๊ณ 
+
+์ž์„ธํ•œ ๋‚ด์šฉ์€ Starlette์˜ <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank"> WebSocket ํ…Œ์ŠคํŠธ</a>์— ๊ด€ํ•œ ์„ค๋ช…์„œ๋ฅผ ์ฐธ๊ณ ํ•˜์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.
+
+///