@@ -66,7 +66,9 @@ async def test_restart_context(async_sandbox: AsyncSandbox):
6666
6767@pytest .mark .skip_debug
6868async def test_create_context_secure_traffic (async_sandbox_factory ):
69- async_sandbox = await async_sandbox_factory (network = {"allow_public_traffic" : False })
69+ async_sandbox = await async_sandbox_factory (
70+ secure = True , network = {"allow_public_traffic" : False }
71+ )
7072 context = await async_sandbox .create_code_context ()
7173
7274 contexts = await async_sandbox .list_code_contexts ()
@@ -79,7 +81,9 @@ async def test_create_context_secure_traffic(async_sandbox_factory):
7981
8082@pytest .mark .skip_debug
8183async def test_remove_context_secure_traffic (async_sandbox_factory ):
82- async_sandbox = await async_sandbox_factory (network = {"allow_public_traffic" : False })
84+ async_sandbox = await async_sandbox_factory (
85+ secure = True , network = {"allow_public_traffic" : False }
86+ )
8387 context = await async_sandbox .create_code_context ()
8488
8589 await async_sandbox .remove_code_context (context .id )
@@ -90,7 +94,9 @@ async def test_remove_context_secure_traffic(async_sandbox_factory):
9094
9195@pytest .mark .skip_debug
9296async def test_list_contexts_secure_traffic (async_sandbox_factory ):
93- async_sandbox = await async_sandbox_factory (network = {"allow_public_traffic" : False })
97+ async_sandbox = await async_sandbox_factory (
98+ secure = True , network = {"allow_public_traffic" : False }
99+ )
94100 contexts = await async_sandbox .list_code_contexts ()
95101
96102 # default contexts should include python and javascript
@@ -101,7 +107,9 @@ async def test_list_contexts_secure_traffic(async_sandbox_factory):
101107
102108@pytest .mark .skip_debug
103109async def test_restart_context_secure_traffic (async_sandbox_factory ):
104- async_sandbox = await async_sandbox_factory (network = {"allow_public_traffic" : False })
110+ async_sandbox = await async_sandbox_factory (
111+ secure = True , network = {"allow_public_traffic" : False }
112+ )
105113 context = await async_sandbox .create_code_context ()
106114
107115 # set a variable in the context
0 commit comments