Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pytest-cov
mypy==1.16.1
psutil>=7.0.0
pytest-asyncio>=1.1.0
openai>=1.97.1
3 changes: 3 additions & 0 deletions tests/test_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def test_readme(tmp_path, killall):

for i, code in enumerate(tqdm(code_blocks)):
# Replace LLM with MockLLM in the code block
if "from litai import LLM" not in code:
print(f"Skipping non LitAI code block: {i}")
continue
modified_code = _replace_llm_with_mockllm(code)

file = d / f"{i}.py"
Expand Down
Loading