Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
cd7358c0
Commit
cd7358c0
authored
Jun 17, 2026
by
Kantz
Browse files
removed old test
parent
f3dad3ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
math-tutor/backend/test/test_llm_provider.py
View file @
cd7358c0
...
@@ -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/"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment