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]

Test creation of persistent container (#184)

Kilian Lierete39e2cfec28b
diff --git a/tests/test_env.py b/tests/test_env.py
index 207f2c99..764c2fe8 100644
--- a/tests/test_env.py
+++ b/tests/test_env.py
@@ -36,6 +36,12 @@ def test_init_swe_env(test_env_args):
env.reset()
+def test_init_swe_env_persistent(test_env_args):
+ test_env_args = dataclasses.replace(test_env_args, container_name="test-container")
+ env = SWEEnv(test_env_args)
+ env.reset()
+
@pytest.mark.slow
def test_execute_setup_script(tmp_path, test_env_args):