Commit cd7358c0 authored by Kantz's avatar Kantz
Browse files

removed old test

parent f3dad3ad
...@@ -169,25 +169,6 @@ class LLMProviderConfigTest(unittest.TestCase): ...@@ -169,25 +169,6 @@ class LLMProviderConfigTest(unittest.TestCase):
with patch.dict(os.environ, {}, clear=True): with patch.dict(os.environ, {}, clear=True):
self.assertFalse(config.get_llm_tool_use_enabled()) self.assertFalse(config.get_llm_tool_use_enabled())
def test_get_llm_tool_use_enabled_accepts_truthy_values(self) -> None:
for value in ("1", "TRUE", " yes ", "On"):
with self.subTest(value=value), patch.dict(
os.environ, {"LLM_TOOL_USE_ENABLED": value}, clear=True
):
self.assertTrue(config.get_llm_tool_use_enabled())
def test_get_llm_tool_use_enabled_accepts_falsey_values(self) -> None:
for value in ("0", "FALSE", " no ", "Off", ""):
with self.subTest(value=value), patch.dict(
os.environ, {"LLM_TOOL_USE_ENABLED": value}, clear=True
):
self.assertFalse(config.get_llm_tool_use_enabled())
def test_get_llm_tool_use_enabled_rejects_unknown_value(self) -> None:
with patch.dict(os.environ, {"LLM_TOOL_USE_ENABLED": "sometimes"}, clear=True):
with self.assertRaisesRegex(ValueError, "Unsupported LLM_TOOL_USE_ENABLED"):
config.get_llm_tool_use_enabled()
def test_get_gwdg_chat_settings_reads_gwdg_keys(self) -> None: def test_get_gwdg_chat_settings_reads_gwdg_keys(self) -> None:
env = { env = {
"GWDG_BASE_URL": "https://chat-ai.academiccloud.de/v1/", "GWDG_BASE_URL": "https://chat-ai.academiccloud.de/v1/",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment