Skip to content

Commit 7e0f5d2

Browse files
committed
feat(kb): add tests for Viking knowledgebase and improve TOS bucket handling
1 parent c4fec11 commit 7e0f5d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_knowledgebase.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ async def test_knowledgebase():
2929
)
3030

3131
assert isinstance(kb._backend, InMemoryKnowledgeBackend)
32+
33+
34+
@pytest.mark.asyncio
35+
async def test_viking_knowledgebase_add_texts():
36+
app_name = "kb_test_app"
37+
kb = KnowledgeBase(
38+
backend="viking",
39+
app_name=app_name,
40+
)
41+
assert kb.add_from_text(text="test text", tag="tag") is True

0 commit comments

Comments
 (0)