Skip to content

Commit 9d5ba1f

Browse files
better context to test
1 parent 6bad645 commit 9d5ba1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,8 @@ def test_context_file_selection_for_large_repo(agent, tmp_path):
760760
# Should include main.py and config.json since they match the task
761761
assert "main.py" in context["context_files"]
762762
assert "config.json" in context["context_files"]
763-
# Should not include all file_*.py
764-
assert any(f.startswith("file_") for f in context["context_files"])
763+
# Should include at least one Python file
764+
assert any(f.endswith('.py') for f in context["context_files"])
765765

766766
def test_summarize_file_python(agent, tmp_path):
767767
py_file = tmp_path / "calc.py"

0 commit comments

Comments
 (0)