Buckets:

download
raw
563 Bytes
import pytest
from jcapy.agents.jcapy_agent import JCapyAgent
from jcapy.core.sandbox import LocalSandbox
def test_jcapy_agent_uses_sandbox():
sandbox = LocalSandbox()
agent = JCapyAgent(sandbox=sandbox)
result = agent.execute("echo 'agent testing sandbox'")
assert "Output: agent testing sandbox" in result
def test_jcapy_agent_default_sandbox():
agent = JCapyAgent()
assert agent.sandbox is not None
assert isinstance(agent.sandbox, LocalSandbox)
result = agent.execute("echo 'default'")
assert "Output: default" in result

Xet Storage Details

Size:
563 Bytes
·
Xet hash:
8f164ce7cd924e88d2fa61a3a24f2418e9bbb7a364dc276280c0131bd05ed948

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.