mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-08 16:02:20 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -50,6 +50,17 @@ async def test_continuation_phrase_falls_back_to_original_ask(handler, monkeypat
|
||||
assert result == "Summarize recent advances in fusion energy."
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_search_continuation_falls_back_to_original_ask(handler, monkeypatch):
|
||||
monkeypatch.setattr("src.llm_core.llm_call_async", _raise)
|
||||
sess = _session([
|
||||
("user", "Which Swedish king was most associated with dancing and court balls?"),
|
||||
("assistant", "Gustav III is the likely answer. Want me to verify?"),
|
||||
])
|
||||
result = await handler.synthesize_query(sess, "can you search", "http://local.test", "m")
|
||||
assert result == "Which Swedish king was most associated with dancing and court balls?"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_short_country_answer_is_kept(handler, monkeypatch):
|
||||
# original ask + assistant asks "which country?" + user "UK" => "UK"
|
||||
|
||||
Reference in New Issue
Block a user