Add RAG basic implementation
This commit is contained in:
@@ -38,3 +38,16 @@ def backend_dsn(request, tmp_path) -> str:
|
||||
url = f"sqlite:///{tmp_path / 'test.db'}"
|
||||
create_schema(url)
|
||||
return url
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sleeps():
|
||||
"""A fake `sleep` that records the pauses a retry loop asks for instead of waiting."""
|
||||
calls: list[float] = []
|
||||
|
||||
async def fake_sleep(seconds: float) -> None:
|
||||
calls.append(seconds)
|
||||
|
||||
fake_sleep.calls = calls
|
||||
return fake_sleep
|
||||
|
||||
|
||||
Reference in New Issue
Block a user