Add vcr to tests

This commit is contained in:
Yiorgis Gozadinos 2025-12-29 14:59:07 +02:00
parent fc3530258d
commit 22f22d2181
No known key found for this signature in database
3 changed files with 86 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -344,7 +344,7 @@ def test_search_result_get_primary_label():
assert result._get_primary_label() is None
@pytest.mark.asyncio
@pytest.mark.vcr()
async def test_chunk_content_fts_populated(temp_db_path):
"""Test that content_fts column is populated with contextualized content."""
from haiku.rag.embeddings import get_embedder
@ -388,7 +388,7 @@ async def test_chunk_content_fts_populated(temp_db_path):
)
@pytest.mark.asyncio
@pytest.mark.vcr()
async def test_chunk_content_fts_without_headings(temp_db_path):
"""Test that content_fts equals content when no headings present."""
from haiku.rag.embeddings import get_embedder