@@ -66,8 +66,8 @@ def test_restart_context(sandbox: Sandbox):
6666
6767# Secure traffic tests (public traffic disabled)
6868@pytest .mark .skip_debug
69- def test_create_context_secure_traffic (sandbox_factory ):
70- sandbox = sandbox_factory (network = {"allow_public_traffic" : False })
69+ def test_create_context_secure_traffic (sandbox ):
70+ sandbox = sandbox (network = {"allow_public_traffic" : False })
7171 context = sandbox .create_code_context ()
7272
7373 contexts = sandbox .list_code_contexts ()
@@ -79,8 +79,8 @@ def test_create_context_secure_traffic(sandbox_factory):
7979
8080
8181@pytest .mark .skip_debug
82- def test_remove_context_secure_traffic (sandbox_factory ):
83- sandbox = sandbox_factory (network = {"allow_public_traffic" : False })
82+ def test_remove_context_secure_traffic (sandbox ):
83+ sandbox = sandbox (network = {"allow_public_traffic" : False })
8484 context = sandbox .create_code_context ()
8585
8686 sandbox .remove_code_context (context .id )
@@ -90,8 +90,8 @@ def test_remove_context_secure_traffic(sandbox_factory):
9090
9191
9292@pytest .mark .skip_debug
93- def test_list_contexts_secure_traffic (sandbox_factory ):
94- sandbox = sandbox_factory (network = {"allow_public_traffic" : False })
93+ def test_list_contexts_secure_traffic (sandbox ):
94+ sandbox = sandbox (network = {"allow_public_traffic" : False })
9595 contexts = sandbox .list_code_contexts ()
9696
9797 # default contexts should include python and javascript
@@ -101,8 +101,8 @@ def test_list_contexts_secure_traffic(sandbox_factory):
101101
102102
103103@pytest .mark .skip_debug
104- def test_restart_context_secure_traffic (sandbox_factory ):
105- sandbox = sandbox_factory (network = {"allow_public_traffic" : False })
104+ def test_restart_context_secure_traffic (sandbox ):
105+ sandbox = sandbox (network = {"allow_public_traffic" : False })
106106 context = sandbox .create_code_context ()
107107
108108 # set a variable in the context
0 commit comments