summaryrefslogtreecommitdiff
path: root/tests/test_i18n.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_i18n.py')
-rw-r--r--tests/test_i18n.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_i18n.py b/tests/test_i18n.py
index a2d0ffd..c8e4f33 100644
--- a/tests/test_i18n.py
+++ b/tests/test_i18n.py
@@ -2,7 +2,6 @@
from __future__ import annotations
-import json
import re
from pathlib import Path
@@ -10,7 +9,6 @@ import pytest
from ollama_web import i18n, prompts
-
_SRC = Path(__file__).resolve().parent.parent / "src" / "ollama_web"
@@ -106,6 +104,8 @@ def test_get_prompt_returns_expected_strings():
"""Basic sanity checks for the get_prompt() helper."""
assert prompts.get_prompt("tool_system") == prompts.get_prompts("ja")["tool_system"]
assert prompts.get_prompt("tool_system", lang="en") == prompts.get_prompts("en")["tool_system"]
- assert prompts.get_prompt("current_time", lang="ja") == prompts.get_prompts("ja")["current_time"]
+ assert (
+ prompts.get_prompt("current_time", lang="ja") == prompts.get_prompts("ja")["current_time"]
+ )
assert prompts.get_prompt("missing.prompt", fallback="fallback") == "fallback"
assert prompts.get_prompt("missing.prompt") == "missing.prompt"