mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 02:05:22 -04:00
fix(tests): restore Python CI baseline regressions
Test-only fix continuing #2523. Updates two stale regression tests so the current broad Python pytest baseline is restored without changing production code.
This commit is contained in:
committed by
GitHub
parent
30173f3909
commit
621885ac06
@@ -40,8 +40,12 @@ def test_substring_inside_word_does_not_force_document_tools():
|
||||
|
||||
def test_substring_inside_word_does_not_force_serve_tools():
|
||||
ti = _index()
|
||||
# "observe"/"reserve" contain "serve".
|
||||
tools = ti.get_tools_for_query("please observe the reserve levels")
|
||||
# "observe"/"reserve" contain "serve". serve_model/serve_preset are also in
|
||||
# ALWAYS_AVAILABLE, so pass a non-serve base to isolate the keyword loop (an
|
||||
# empty set falls back to ALWAYS_AVAILABLE). The "serve" hint must NOT fire.
|
||||
tools = ti.get_tools_for_query(
|
||||
"please observe the reserve levels", always_include={"__base__"}
|
||||
)
|
||||
assert "serve_model" not in tools
|
||||
assert "serve_preset" not in tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user