Skip to content

Commit b32245f

Browse files
cursoragentdobrac
andcommitted
Refactor async_sandbox_factory to use default kwargs
Co-authored-by: jakub.dobry <jakub.dobry@e2b.dev>
1 parent 52c28fb commit b32245f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ def sandbox(template, debug):
4848
@pytest.fixture
4949
def async_sandbox_factory(request, template, debug, event_loop):
5050
"""Factory for creating async sandboxes with proper cleanup."""
51+
5152
async def factory(template_override=None, **kwargs):
5253
template_name = template_override or template
5354
kwargs.setdefault("timeout", timeout)
5455
kwargs.setdefault("debug", debug)
55-
56+
5657
sandbox = await AsyncSandbox.create(template_name, **kwargs)
5758

5859
def kill():

0 commit comments

Comments
 (0)