Skip to content

Commit 39e426a

Browse files
randclaude
andcommitted
fix: update test paths for scripts moved to legacy/
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2d325a7 commit 39e426a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

tests/integration/test_hook_scripts.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_creates_config_file(self, tmp_path, monkeypatch):
3535
monkeypatch.setenv("HOME", str(tmp_path))
3636

3737
result = subprocess.run(
38-
[sys.executable, str(PROJECT_ROOT / "scripts" / "init_rlm.py")],
38+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "init_rlm.py")],
3939
capture_output=True,
4040
text=True,
4141
env=get_env_with_pythonpath(tmp_path),
@@ -59,7 +59,7 @@ def test_creates_trajectories_dir(self, tmp_path, monkeypatch):
5959
monkeypatch.setenv("HOME", str(tmp_path))
6060

6161
subprocess.run(
62-
[sys.executable, str(PROJECT_ROOT / "scripts" / "init_rlm.py")],
62+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "init_rlm.py")],
6363
capture_output=True,
6464
text=True,
6565
env=get_env_with_pythonpath(tmp_path),
@@ -86,7 +86,7 @@ def test_simple_query_not_activated(self, tmp_path, monkeypatch):
8686
result = subprocess.run(
8787
[
8888
sys.executable,
89-
str(PROJECT_ROOT / "scripts" / "check_complexity.py"),
89+
str(PROJECT_ROOT / "scripts" / "legacy" / "check_complexity.py"),
9090
"git status",
9191
],
9292
capture_output=True,
@@ -112,7 +112,7 @@ def test_complex_query_activated(self, tmp_path, monkeypatch):
112112
result = subprocess.run(
113113
[
114114
sys.executable,
115-
str(PROJECT_ROOT / "scripts" / "check_complexity.py"),
115+
str(PROJECT_ROOT / "scripts" / "legacy" / "check_complexity.py"),
116116
"Find the bug in auth.py and fix it, then update the tests in test_auth.py",
117117
],
118118
capture_output=True,
@@ -148,7 +148,7 @@ def test_runs_without_error(self, tmp_path, monkeypatch):
148148
env["CLAUDE_SESSION_ID"] = "test-session"
149149

150150
result = subprocess.run(
151-
[sys.executable, str(PROJECT_ROOT / "scripts" / "sync_context.py")],
151+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "sync_context.py")],
152152
capture_output=True,
153153
text=True,
154154
cwd=str(PROJECT_ROOT),
@@ -174,7 +174,7 @@ def test_captures_tool_output(self, tmp_path, monkeypatch):
174174
env["CLAUDE_TOOL_EXIT_CODE"] = "0"
175175

176176
result = subprocess.run(
177-
[sys.executable, str(PROJECT_ROOT / "scripts" / "capture_output.py")],
177+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "capture_output.py")],
178178
capture_output=True,
179179
text=True,
180180
cwd=str(PROJECT_ROOT),
@@ -197,7 +197,7 @@ def test_creates_externalized_files(self, tmp_path, monkeypatch):
197197
env["CLAUDE_SESSION_ID"] = "extern-test"
198198

199199
result = subprocess.run(
200-
[sys.executable, str(PROJECT_ROOT / "scripts" / "externalize_context.py")],
200+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "externalize_context.py")],
201201
capture_output=True,
202202
text=True,
203203
cwd=str(PROJECT_ROOT),
@@ -225,7 +225,7 @@ def test_saves_on_session_end(self, tmp_path, monkeypatch):
225225

226226
# Initialize session first
227227
subprocess.run(
228-
[sys.executable, str(PROJECT_ROOT / "scripts" / "init_rlm.py")],
228+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "init_rlm.py")],
229229
capture_output=True,
230230
text=True,
231231
env=env,
@@ -234,7 +234,7 @@ def test_saves_on_session_end(self, tmp_path, monkeypatch):
234234
# Sync context to create session
235235
env["CLAUDE_SESSION_ID"] = "save-test"
236236
subprocess.run(
237-
[sys.executable, str(PROJECT_ROOT / "scripts" / "sync_context.py")],
237+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "sync_context.py")],
238238
capture_output=True,
239239
text=True,
240240
cwd=str(PROJECT_ROOT),
@@ -243,7 +243,7 @@ def test_saves_on_session_end(self, tmp_path, monkeypatch):
243243

244244
# Save trajectory
245245
result = subprocess.run(
246-
[sys.executable, str(PROJECT_ROOT / "scripts" / "save_trajectory.py")],
246+
[sys.executable, str(PROJECT_ROOT / "scripts" / "legacy" / "save_trajectory.py")],
247247
capture_output=True,
248248
text=True,
249249
cwd=str(PROJECT_ROOT),

0 commit comments

Comments
 (0)