22from  e2b_code_interpreter .code_interpreter_async  import  AsyncSandbox 
33
44@pytest .mark .skip_debug () 
5- async  def  test_env_vars_on_sandbox ():
6-     sandbox  =  await  AsyncSandbox .create (envs = {"TEST_ENV_VAR" : "supertest" })
5+ async  def  test_env_vars_on_sandbox (template ):
6+     sandbox  =  await  AsyncSandbox .create (template = template ,  envs = {"TEST_ENV_VAR" : "supertest" })
77    try :
88        result  =  await  sandbox .run_code (
99            "const x = Deno.env.get('TEST_ENV_VAR'); x" ,
@@ -14,7 +14,8 @@ async def test_env_vars_on_sandbox():
1414    finally :
1515        await  sandbox .kill ()
1616
17- async  def  test_env_vars_per_execution (sandbox : AsyncSandbox ):
17+ async  def  test_env_vars_per_execution (sandbox : AsyncSandbox , template ):
18+     sandbox  =  await  AsyncSandbox .create (template = template )
1819    result  =  await  sandbox .run_code (
1920        "Deno.env.get('FOO')" ,
2021        envs = {"FOO" : "bar" },
@@ -32,8 +33,8 @@ async def test_env_vars_per_execution(sandbox: AsyncSandbox):
3233    assert  result_empty .text .strip () ==  "default" 
3334
3435@pytest .mark .skip_debug () 
35- async  def  test_env_vars_overwrite ():
36-     sandbox  =  await  AsyncSandbox .create (envs = {"TEST_ENV_VAR" : "supertest" })
36+ async  def  test_env_vars_overwrite (template ):
37+     sandbox  =  await  AsyncSandbox .create (template = template ,  envs = {"TEST_ENV_VAR" : "supertest" })
3738    try :
3839        result  =  await  sandbox .run_code (
3940            "const x = Deno.env.get('TEST_ENV_VAR'); x" ,
0 commit comments