Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

CI: Fix autosubmit unittest after adding ^C

Kilian Lieretd05aa0fb7e49
diff --git a/tests/test_agent.py b/tests/test_agent.py
index 93eab23f..48e14952 100644
--- a/tests/test_agent.py
+++ b/tests/test_agent.py
@@ -188,7 +188,8 @@ def test_run_autosubmit(dummy_env: SWEEnv, default_agent: Agent, tmp_path):
a.model = PredeterminedTestModel(["raise_cost"]) # type: ignore
a.setup(dummy_env, EmptyProblemStatement())
dummy_env.deployment.runtime.run_in_session_outputs = [ # type: ignore
- BashObservation(output=r"<<SUBMISSION||mysubmission||SUBMISSION>>")
+ BashObservation(output=""),
+ BashObservation(output=r"<<SUBMISSION||mysubmission||SUBMISSION>>"),
]
r = a.step()
assert a.info is not None