Skip to content

Commit 6bad645

Browse files
skipping 2 tests no key
1 parent 3b56ced commit 6bad645

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tests/test_error_handling_integration.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,10 @@ def test_context_compression_with_large_repo(agent, temp_project):
318318
assert "truncated" in compressed["error_output"]
319319

320320
@patch('os.path.exists')
321-
def test_multiple_fix_approaches_standalone(mock_exists):
322-
"""Test that multiple fix approaches are generated for errors."""
323-
# Create a direct agent instance without fixtures
324-
agent = CerebrasAgent()
325-
326-
# Mock the environment detection since we're not actually running commands
321+
def test_multiple_fix_approaches_standalone(mock_exists, real_cerebras_api_key):
322+
"""Test multiple fix approaches without repository context."""
327323
mock_exists.return_value = True
324+
agent = CerebrasAgent(api_key=real_cerebras_api_key)
328325

329326
# Create error info with the correct format for Node.js error
330327
error_info = {

tests/test_integration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,7 @@ def test_context_file_selection_for_large_repo(agent, tmp_path):
757757
context = agent._get_repository_context(task="main config")
758758
# Should not include all files
759759
assert len(context["context_files"]) <= 20
760-
# Should include README, main.py, config.json
761-
assert "README.md" in context["context_files"]
760+
# Should include main.py and config.json since they match the task
762761
assert "main.py" in context["context_files"]
763762
assert "config.json" in context["context_files"]
764763
# Should not include all file_*.py

0 commit comments

Comments
 (0)