From 5b686680a2c45df9c0d6536bf4da69a3fe3003db Mon Sep 17 00:00:00 2001 From: Mish <10400064+mishushakov@users.noreply.github.com> Date: Sat, 7 Jun 2025 21:16:00 +0200 Subject: [PATCH] pass debug explicitly to sandbox in tests --- packages/js-sdk/tests/setup.ts | 2 +- packages/python-sdk/tests/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/js-sdk/tests/setup.ts b/packages/js-sdk/tests/setup.ts index e0ffcd31e..c5556732e 100644 --- a/packages/js-sdk/tests/setup.ts +++ b/packages/js-sdk/tests/setup.ts @@ -10,7 +10,7 @@ export const sandboxTest = base.extend({ sandbox: [ // eslint-disable-next-line no-empty-pattern async ({}, use) => { - const sandbox = await Sandbox.create(template) + const sandbox = await Sandbox.create(template, { debug: isDebug }) try { await use(sandbox) } finally { diff --git a/packages/python-sdk/tests/conftest.py b/packages/python-sdk/tests/conftest.py index ae0c23460..0e14105a5 100644 --- a/packages/python-sdk/tests/conftest.py +++ b/packages/python-sdk/tests/conftest.py @@ -22,7 +22,7 @@ def template(): @pytest.fixture() def sandbox(template, debug): - sandbox = Sandbox(template) + sandbox = Sandbox(template, debug=debug) try: yield sandbox @@ -38,7 +38,7 @@ def sandbox(template, debug): @pytest_asyncio.fixture async def async_sandbox(template, debug): - sandbox = await AsyncSandbox.create(template) + sandbox = await AsyncSandbox.create(template, debug=debug) try: yield sandbox