File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
python/tests/async/env_vars Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments