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: Fixing tests (swe-rex changes)

Kilian Lieret2c6cabc91a03
diff --git a/tests/test_agent.py b/tests/test_agent.py
index 93b8e431..93eab23f 100644
--- a/tests/test_agent.py
+++ b/tests/test_agent.py
@@ -129,7 +129,7 @@ def test_exit_blocklist(dummy_env: SWEEnv, test_agent: Agent, tmp_path):
class RuntimeRaisesFirst(DummyRuntime):
async def run_in_session(self, action: Action) -> Observation:
- if action.session_type == "bash" and action.command == "raise":
+ if action.action_type == "bash" and action.command == "raise":
raise SweRexception()
return await super().run_in_session(action)
diff --git a/tests/test_batch_instance.py b/tests/test_batch_instance.py
index 0d6b4feb..e0a283b2 100644
--- a/tests/test_batch_instance.py
+++ b/tests/test_batch_instance.py
@@ -16,7 +16,7 @@ def test_simple_batch_from_swe_bench_to_full_batch_instance(test_data_sources_pa
assert isinstance(instance.env.repo, PreExistingRepo)
assert instance.env.repo.repo_name == "testbed"
assert isinstance(instance.env.deployment, DockerDeploymentConfig)
- assert instance.env.deployment.image == "swebench/sweb.eval.x86_64.pydicom_1776_pydicom-1458:v1"
+ assert instance.env.deployment.image == "swebench/sweb.eval.x86_64.pydicom_1776_pydicom-1458:latest"
assert isinstance(instance.problem_statement, TextProblemStatement)
assert instance.problem_statement.text == sb_instance["problem_statement"]
assert instance.problem_statement.id == "pydicom__pydicom-1458"