Skip to content

The agent that grows with you

test: bind _slash_metrics_surface on the destructive-slash CLI stub

teknium132cb9a636890
diff --git a/tests/hermes_cli/test_destructive_slash_inline_skip_e2e.py b/tests/hermes_cli/test_destructive_slash_inline_skip_e2e.py
index a2eb88c3312..5821e4e0162 100644
--- a/tests/hermes_cli/test_destructive_slash_inline_skip_e2e.py
+++ b/tests/hermes_cli/test_destructive_slash_inline_skip_e2e.py
@@ -48,6 +48,7 @@ def _make_cli_stub():
self_, type(self_)
)
self_._slash_handler = HermesCLI._slash_handler
+ self_._slash_metrics_surface = HermesCLI._slash_metrics_surface
self_._cmd_new = HermesCLI._cmd_new.__get__(self_, type(self_))
self_.process_command = HermesCLI.process_command.__get__(self_, type(self_))
return self_, new_session_calls
@@ -120,6 +121,7 @@ def test_new_without_skip_token_still_consults_modal():
self_, type(self_)
)
self_._slash_handler = HermesCLI._slash_handler
+ self_._slash_metrics_surface = HermesCLI._slash_metrics_surface
self_._cmd_new = HermesCLI._cmd_new.__get__(self_, type(self_))
self_.process_command = HermesCLI.process_command.__get__(self_, type(self_))