mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
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:
parent
06f0083a76
commit
07a069fc31
@ -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."))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user