Remove stale cassette, dead vcr_cassette_dir fixtures, and unnecessary VCR decorator
This commit is contained in:
parent
878423ea2e
commit
f73d4f4da9
4 changed files with 1 additions and 14974 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,17 +1,9 @@
|
||||||
from pathlib import Path
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from haiku.rag.agents.research.models import ResearchReport
|
from haiku.rag.agents.research.models import ResearchReport
|
||||||
from haiku.rag.client import HaikuRAG
|
from haiku.rag.client import HaikuRAG
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
|
||||||
def vcr_cassette_dir():
|
|
||||||
return str(Path(__file__).parent / "cassettes" / "test_client_research")
|
|
||||||
|
|
||||||
|
|
||||||
async def test_client_research_report(temp_db_path):
|
async def test_client_research_report(temp_db_path):
|
||||||
"""Test client.research() delegates to research graph in report mode."""
|
"""Test client.research() delegates to research graph in report mode."""
|
||||||
mock_report = ResearchReport(
|
mock_report = ResearchReport(
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
from pathlib import Path
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
|
@ -8,11 +7,6 @@ import pytest
|
||||||
from haiku.rag.client import HaikuRAG
|
from haiku.rag.client import HaikuRAG
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
|
||||||
def vcr_cassette_dir():
|
|
||||||
return str(Path(__file__).parent / "cassettes" / "test_download_models")
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_to_thread():
|
def mock_to_thread():
|
||||||
"""Patch asyncio.to_thread to skip docling/tokenizer downloads."""
|
"""Patch asyncio.to_thread to skip docling/tokenizer downloads."""
|
||||||
|
|
|
||||||
|
|
@ -154,8 +154,7 @@ async def test_embed_chunks_returns_new_objects(allow_model_requests):
|
||||||
assert embedded[0] is not original
|
assert embedded[0] is not original
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.vcr()
|
async def test_embed_chunks_empty_list():
|
||||||
async def test_embed_chunks_empty_list(allow_model_requests):
|
|
||||||
"""Test that embed_chunks handles empty list."""
|
"""Test that embed_chunks handles empty list."""
|
||||||
result = await embed_chunks([])
|
result = await embed_chunks([])
|
||||||
assert result == []
|
assert result == []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue