Spaces:
Sleeping
Sleeping
fix: update mock target for get_python_files in test after refactor to file_scanner
Browse files- tests/test_agents.py +1 -1
tests/test_agents.py
CHANGED
|
@@ -82,7 +82,7 @@ async def test_code_review_agent_no_source_files():
|
|
| 82 |
name="repo",
|
| 83 |
local_path="/tmp/fake",
|
| 84 |
)
|
| 85 |
-
with patch("app.
|
| 86 |
result = await code_review_agent.run("/tmp/fake", metadata)
|
| 87 |
assert result.overall_score == 0.0
|
| 88 |
assert "No source files" in result.summary
|
|
|
|
| 82 |
name="repo",
|
| 83 |
local_path="/tmp/fake",
|
| 84 |
)
|
| 85 |
+
with patch("app.tools.file_scanner.get_python_files", return_value=[]):
|
| 86 |
result = await code_review_agent.run("/tmp/fake", metadata)
|
| 87 |
assert result.overall_score == 0.0
|
| 88 |
assert "No source files" in result.summary
|