fix(tests): thread app_config into is_host_bash_allowed call in live test

is_host_bash_allowed now requires an explicit AppConfig argument (Phase 2
of the config refactor). Pass client._app_config at the call site.
This commit is contained in:
greatmengqi 2026-04-17 11:54:31 +08:00
parent 06f0083a76
commit 07a069fc31

View File

@ -101,7 +101,7 @@ class TestLiveStreaming:
class TestLiveToolUse: class TestLiveToolUse:
def test_agent_uses_bash_tool(self, client): def test_agent_uses_bash_tool(self, client):
"""Agent uses bash tool when asked to run a command.""" """Agent uses bash tool when asked to run a command."""
if not is_host_bash_allowed(): if not is_host_bash_allowed(client._app_config):
pytest.skip("Host bash is disabled for LocalSandboxProvider in the active config") pytest.skip("Host bash is disabled for LocalSandboxProvider in the active config")
events = list(client.stream("Use the bash tool to run: echo 'LIVE_TEST_OK'. Then tell me the output.")) events = list(client.stream("Use the bash tool to run: echo 'LIVE_TEST_OK'. Then tell me the output."))