feat: adds missing checks to rag completion test
This commit is contained in:
parent
e01bd80cc9
commit
b0d806526a
1 changed files with 13 additions and 1 deletions
|
|
@ -211,7 +211,19 @@ async def test_rag_completion_context_simple(setup_test_environment_with_chunks_
|
|||
|
||||
context = await retriever.get_context("Mike")
|
||||
|
||||
assert context == "Mike Broski", "Failed to get Mike Broski"
|
||||
assert isinstance(context, str), "Context should be a string"
|
||||
assert "Mike Broski" in context, "Failed to get Mike Broski"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_rag_completion_context_multiple_chunks(setup_test_environment_with_chunks_simple):
|
||||
"""Integration test: verify CompletionRetriever can retrieve context from multiple chunks."""
|
||||
retriever = CompletionRetriever()
|
||||
|
||||
context = await retriever.get_context("Steve")
|
||||
|
||||
assert isinstance(context, str), "Context should be a string"
|
||||
assert "Steve Rodger" in context, "Failed to get Steve Rodger"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue