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]
added more tests
Talor Abramovich4b12193e7dfe
diff --git a/tests/conftest.py b/tests/conftest.pyindex 456c8bc1..d6c70ff6 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -36,6 +36,13 @@ def test_trajectories_path(test_data_path) -> Path:return p+def test_ctf_trajectories_path(test_data_path) -> Path:+ p = test_data_path / "trajectories" / "ctf"+ assert p.is_dir()+ return p++@pytest.fixturedef test_data_sources_path(test_data_path) -> Path:p = test_data_path / "data_sources"diff --git a/tests/test_replay_ctf.py b/tests/test_replay_ctf.pyindex ece9d565..995350ea 100644--- a/tests/test_replay_ctf.py+++ b/tests/test_replay_ctf.py@@ -6,16 +6,13 @@ from run_replay import get_args, main@pytest.mark.slow-def test_model_replay_from_json(test_trajectories_path, test_data_sources_path):- traj_path = test_trajectories_path / "ctf" / "pwn" / "warmup.traj"[email protected]("traj_rel_path", ["pwn/warmup.traj"])+def test_ctf_traj_replay(test_ctf_trajectories_path, traj_rel_path):+ traj_path = test_ctf_trajectories_path / traj_rel_pathassert traj_path.is_file()- # data_path = test_data_sources_path / "swe-bench-dev-easy_first_only.json"- # assert data_path.is_file()args = ["--traj_path",str(traj_path),- # "--data_path",- # str(data_path),"--config_file","config/default_ctf.yaml","--raise_exceptions",