M3: 발로란트 연동 - 전체 스택 시연·테스트, 핫워드 되풀이 방지
- scripts/demo-stack.mts: 코어+STT+사이트 서버+중계+헤드리스 브라우저 전체 스택 (22라운드 어센트, TTS 대화, 잠금/해제) - test/fixtures/demo-matches.ts: match-details·LCU 구조 시연 데이터 - 워커: 결과가 핫워드 목록 되풀이면 핫워드 없이 다시 변환, 핫워드 40개 - ACS: API 는 총 전투 점수 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
17
worker/tests/test_hotword_echo.py
Normal file
17
worker/tests/test_hotword_echo.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from gvr_worker.stt import is_hotword_echo
|
||||
|
||||
HW = "바론 드래곤 용 장로 전령 유충 억제기 포탑 탑라이너 바텀 슈퍼미니언 정글러 미드라이너 갱킹 백도어 텔"
|
||||
|
||||
|
||||
def test_echo_detected_when_output_is_hotword_list():
|
||||
assert is_hotword_echo("탑라이너 바텀 슈퍼미니언 정글러 미드라이너 갱킹 백도어 텔", HW)
|
||||
|
||||
|
||||
def test_echo_detected_ordered_run():
|
||||
assert is_hotword_echo("음 바론 드래곤 용 그래서", HW)
|
||||
|
||||
|
||||
def test_normal_sentence_with_some_hotwords_is_kept():
|
||||
assert not is_hotword_echo("드래곤 가자 바텀으로 모여", HW)
|
||||
assert not is_hotword_echo("바론 치자 시야 잡아줘", HW)
|
||||
assert not is_hotword_echo("포탑 밀자", HW)
|
||||
Reference in New Issue
Block a user