Buckets:

download
raw
652 Bytes
from secretzero.agent_context import env_sz_agent_mode, spill_guard_active
def test_env_sz_agent_mode_false(monkeypatch) -> None:
monkeypatch.delenv("SZ_AGENT_MODE", raising=False)
assert env_sz_agent_mode() is False
def test_env_sz_agent_mode_true(monkeypatch) -> None:
monkeypatch.setenv("SZ_AGENT_MODE", "true")
assert env_sz_agent_mode() is True
def test_spill_guard_union(monkeypatch) -> None:
monkeypatch.delenv("SZ_AGENT", raising=False)
monkeypatch.delenv("SZ_AGENT_MODE", raising=False)
assert spill_guard_active() is False
monkeypatch.setenv("SZ_AGENT_MODE", "1")
assert spill_guard_active() is True

Xet Storage Details

Size:
652 Bytes
·
Xet hash:
98df6d1d8f3e164a7de1cec9c2f53e49e4e1b5e5b9375a81325e0fda57c8e265

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