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 windowed file unittest
Kilian Liereta5e59c944796
diff --git a/tests/tools/test_default_utils.py b/tests/tools/test_default_utils.pyindex b7888fd7..cdd8fa65 100644--- a/tests/tools/test_default_utils.py+++ b/tests/tools/test_default_utils.py@@ -52,13 +52,13 @@ def test_windowed_file(windowed_file):wfile.print_window()wfile.replace_in_window("10", "Hello, world!")assert wfile.n_lines == 100- assert wfile.line_range == (8, 17)+ assert wfile.line_range == (7, 16)wfile.first_line = 50wfile.print_window()wfile.replace_in_window("50", "Hello, world!")wfile.print_window()# Line 50 is now the 2nd line of the new window- assert wfile.line_range == (48, 57)+ assert wfile.line_range == (47, 56)with pytest.raises(default_utils.TextNotFound):wfile.replace_in_window("asdf", "Hello, world!")