Skip to content

Commit

Permalink
Fix: テストエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Nov 28, 2024
1 parent 966fbe1 commit 3d1c9c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion voicevox_engine/user_dict/user_dict_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def __init__(
self._is_pytest = "pytest" in sys.argv[0] or "py.test" in sys.argv[0]

# 初回起動時などまだユーザー辞書 JSON が存在しない場合、辞書登録例として「担々麺」の辞書エントリを書き込む
if not self._user_dict_path.is_file():
# pytest から実行されている場合は書き込まない
if not self._user_dict_path.is_file() and not self._is_pytest:
self._write_to_json({
"担々麺": create_word(WordProperty(
surface="担々麺",
Expand Down

0 comments on commit 3d1c9c2

Please sign in to comment.