RandomZ / app /tests /test_llm_throttle_stub.py
StormShadow308's picture
feat: async pipeline, job queue, generation hardening, and docs
732b14f
Raw
History Blame Contribute Delete
382 Bytes
import pytest
@pytest.mark.asyncio
async def test_throttled_llm_call_stub() -> None:
from app.llm.llm_throttle import throttled_llm_call
assert callable(throttled_llm_call)
def test_throttled_sync_llm_call_stub() -> None:
from app.llm.llm_throttle import throttled_sync_llm_call
assert throttled_sync_llm_call(phase="t", section_id=None, call=lambda: 1) == 1