Skip to content

Commit 94804b4

Browse files
committed
fixes async python tests
1 parent 02b4796 commit 94804b4

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

python/tests/async/env_vars/test_bash.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ async def test_env_vars_on_sandbox(template):
1313
finally:
1414
await sandbox.kill()
1515

16-
async def test_env_vars_per_execution(sandbox: AsyncSandbox):
17-
result = await sandbox.run_code(
16+
async def test_env_vars_per_execution(async_sandbox: AsyncSandbox):
17+
result = await async_sandbox.run_code(
1818
"echo $FOO",
1919
envs={"FOO": "bar"},
2020
language="bash"
2121
)
2222

23-
result_empty = await sandbox.run_code(
23+
result_empty = await async_sandbox.run_code(
2424
"echo ${FOO:-default}",
2525
language="bash"
2626
)

python/tests/async/env_vars/test_java.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ async def test_env_vars_on_sandbox(template):
1414
finally:
1515
await sandbox.kill()
1616

17-
async def test_env_vars_per_execution(sandbox: AsyncSandbox):
18-
result = await sandbox.run_code(
17+
async def test_env_vars_per_execution(async_sandbox: AsyncSandbox):
18+
result = await async_sandbox.run_code(
1919
'System.getProperty("FOO")',
2020
envs={"FOO": "bar"},
2121
language="java"
2222
)
2323

24-
result_empty = await sandbox.run_code(
24+
result_empty = await async_sandbox.run_code(
2525
'System.getProperty("FOO", "default")',
2626
language="java"
2727
)

python/tests/async/env_vars/test_js.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ async def test_env_vars_on_sandbox(template):
1414
finally:
1515
await sandbox.kill()
1616

17-
async def test_env_vars_per_execution(sandbox: AsyncSandbox):
18-
result = await sandbox.run_code(
17+
async def test_env_vars_per_execution(async_sandbox: AsyncSandbox):
18+
result = await async_sandbox.run_code(
1919
"process.env.FOO",
2020
envs={"FOO": "bar"},
2121
language="javascript"
2222
)
2323

24-
result_empty = await sandbox.run_code(
24+
result_empty = await async_sandbox.run_code(
2525
"process.env.FOO || 'default'",
2626
language="javascript"
2727
)

python/tests/async/env_vars/test_python.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ async def test_env_vars_on_sandbox(template):
1414
finally:
1515
await sandbox.kill()
1616

17-
async def test_env_vars_per_execution(sandbox: AsyncSandbox):
18-
result = await sandbox.run_code(
17+
async def test_env_vars_per_execution(async_sandbox: AsyncSandbox):
18+
result = await async_sandbox.run_code(
1919
"import os; os.getenv('FOO')",
2020
envs={"FOO": "bar"},
2121
language="python"
2222
)
2323

24-
result_empty = await sandbox.run_code(
24+
result_empty = await async_sandbox.run_code(
2525
"import os; os.getenv('FOO', 'default')",
2626
language="python"
2727
)

python/tests/async/env_vars/test_r.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ async def test_env_vars_on_sandbox(template):
1414
finally:
1515
await sandbox.kill()
1616

17-
async def test_env_vars_per_execution(sandbox: AsyncSandbox):
18-
result = await sandbox.run_code(
17+
async def test_env_vars_per_execution(async_sandbox: AsyncSandbox):
18+
result = await async_sandbox.run_code(
1919
'Sys.getenv("FOO")',
2020
envs={"FOO": "bar"},
2121
language="r"
2222
)
2323

24-
result_empty = await sandbox.run_code(
24+
result_empty = await async_sandbox.run_code(
2525
'Sys.getenv("FOO", unset = "default")',
2626
language="r"
2727
)

0 commit comments

Comments
 (0)