fixed workspace not existing during tests
This commit is contained in:
@@ -12,6 +12,10 @@ class PodmanSandbox:
|
||||
self.container = None
|
||||
|
||||
async def __aenter__(self):
|
||||
# ensure workspace directory exists, create if it doesn't
|
||||
workspace_path = Path(settings.safedir).resolve()
|
||||
workspace_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
self.container = self.client.containers.run(
|
||||
"python:3.14",
|
||||
command=["sleep", "60h"],
|
||||
|
||||
Reference in New Issue
Block a user