Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update Python SDK to pydantic V2 (#167)

Jakub Novákcb1ef24d8428
diff --git a/.changeset/three-drinks-fetch.md b/.changeset/three-drinks-fetch.md
new file mode 100644
index 000000000..2f462aa85
--- /dev/null
+++ b/.changeset/three-drinks-fetch.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Update pydantic to v2
diff --git a/packages/python-sdk/.gitignore b/packages/python-sdk/.gitignore
index 6bcca26f1..5874277ee 100644
--- a/packages/python-sdk/.gitignore
+++ b/packages/python-sdk/.gitignore
@@ -263,3 +263,6 @@ dmypy.json
cython_debug/
.idea/
+
+# Test results
+results.csv
diff --git a/packages/python-sdk/Makefile b/packages/python-sdk/Makefile
index a78c25565..c05fbe5ab 100644
--- a/packages/python-sdk/Makefile
+++ b/packages/python-sdk/Makefile
@@ -4,7 +4,7 @@ generate:
# Waiting for https://github.com/OpenAPITools/openapi-generator/pull/16655 to be merged
# Using this branch to use pydantic v2: https://github.com/fa0311/openapi-generator/tree/oshmoun-master-2
# After released, use npx -yes @openapitools/openapi-generator-cli generate
- java -jar /Users/i/Work/e2b/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
+ java -jar <OPENAPI-TOOL-PATH>/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
-i ../../spec/openapi.yml \
--library asyncio \
-g python \
@@ -12,10 +12,10 @@ generate:
--global-property apis,models,supportingFiles,modelDocs=false \
--additional-properties=generateSourceCodeOnly=true \
--additional-properties=disallowAdditionalPropertiesIfNotPresent=true \
+ --additional-properties=usePydanticV2=true \
--additional-properties=packageName=e2b.api.client
mv ./e2b/api/e2b/api/* ./e2b/api/
rm -r ./e2b/api/e2b
rm -r ./e2b/api/client/docs
rm -r ./e2b/api/client/test
black .
- echo "You have to change `from_dict` method in `e2b/api/client/models/session.py`. Instead of parsing the results from dict, just pass the dict. (`_obj = Session.parse_obj(obj)`)"
diff --git a/packages/python-sdk/e2b/api/client/api/default_api.py b/packages/python-sdk/e2b/api/client/api/default_api.py
index 141f7e912..cb769ea3b 100644
--- a/packages/python-sdk/e2b/api/client/api/default_api.py
+++ b/packages/python-sdk/e2b/api/client/api/default_api.py
@@ -16,7 +16,7 @@ import re # noqa: F401
import io
import warnings
-from pydantic import validate_arguments, ValidationError
+from pydantic import validate_call, ValidationError
from typing_extensions import Annotated
from typing import overload, Optional, Union, Awaitable
@@ -48,7 +48,7 @@ class DefaultApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def health_get(
self, async_req: Optional[bool] = None, **kwargs
) -> Union[None, Awaitable[None]]: # noqa: E501
@@ -80,7 +80,7 @@ class DefaultApi:
kwargs["async_req"] = async_req
return self.health_get_with_http_info(**kwargs) # noqa: E501
- @validate_arguments
+ @validate_call
def health_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
"""health_get # noqa: E501
diff --git a/packages/python-sdk/e2b/api/client/api/envs_api.py b/packages/python-sdk/e2b/api/client/api/envs_api.py
index 98338f4ce..192086614 100644
--- a/packages/python-sdk/e2b/api/client/api/envs_api.py
+++ b/packages/python-sdk/e2b/api/client/api/envs_api.py
@@ -16,7 +16,7 @@ import re # noqa: F401
import io
import warnings
-from pydantic import validate_arguments, ValidationError
+from pydantic import validate_call, ValidationError
from typing_extensions import Annotated
from typing import overload, Optional, Union, Awaitable
@@ -62,7 +62,7 @@ class EnvsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_delete(
self,
api_key: StrictStr,
@@ -104,7 +104,7 @@ class EnvsApi:
api_key, code_snippet_id, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_delete_with_http_info(
self, api_key: StrictStr, code_snippet_id: StrictStr, **kwargs
) -> ApiResponse: # noqa: E501
@@ -235,7 +235,7 @@ class EnvsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_patch(
self,
api_key: StrictStr,
@@ -277,7 +277,7 @@ class EnvsApi:
api_key, code_snippet_id, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_patch_with_http_info(
self, api_key: StrictStr, code_snippet_id: StrictStr, **kwargs
) -> ApiResponse: # noqa: E501
@@ -413,7 +413,7 @@ class EnvsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_post(
self,
api_key: StrictStr,
@@ -458,7 +458,7 @@ class EnvsApi:
api_key, code_snippet_id, new_environment, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_post_with_http_info(
self,
api_key: StrictStr,
@@ -611,7 +611,7 @@ class EnvsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_state_put(
self,
api_key: StrictStr,
@@ -656,7 +656,7 @@ class EnvsApi:
api_key, code_snippet_id, environment_state_update, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_state_put_with_http_info(
self,
api_key: StrictStr,
@@ -809,7 +809,7 @@ class EnvsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_title_put(
self,
api_key: StrictStr,
@@ -854,7 +854,7 @@ class EnvsApi:
api_key, code_snippet_id, environment_title_update, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_code_snippet_id_title_put_with_http_info(
self,
api_key: StrictStr,
@@ -998,7 +998,7 @@ class EnvsApi:
) -> List[Environment]: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_get(
self, api_key: StrictStr, async_req: Optional[bool] = None, **kwargs
) -> Union[List[Environment], Awaitable[List[Environment]]]: # noqa: E501
@@ -1032,7 +1032,7 @@ class EnvsApi:
kwargs["async_req"] = async_req
return self.envs_get_with_http_info(api_key, **kwargs) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_get_with_http_info(
self, api_key: StrictStr, **kwargs
) -> ApiResponse: # noqa: E501
@@ -1163,7 +1163,7 @@ class EnvsApi:
) -> Environment: # noqa: E501
...
- @validate_arguments
+ @validate_call
def envs_post(
self,
api_key: StrictStr,
@@ -1205,7 +1205,7 @@ class EnvsApi:
api_key, new_environment, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def envs_post_with_http_info(
self, api_key: StrictStr, new_environment: NewEnvironment, **kwargs
) -> ApiResponse: # noqa: E501
diff --git a/packages/python-sdk/e2b/api/client/api/sessions_api.py b/packages/python-sdk/e2b/api/client/api/sessions_api.py
index b35dbb7a5..04bde092f 100644
--- a/packages/python-sdk/e2b/api/client/api/sessions_api.py
+++ b/packages/python-sdk/e2b/api/client/api/sessions_api.py
@@ -16,7 +16,7 @@ import re # noqa: F401
import io
import warnings
-from pydantic import validate_arguments, ValidationError
+from pydantic import validate_call, ValidationError
from typing_extensions import Annotated
from typing import overload, Optional, Union, Awaitable
@@ -56,7 +56,7 @@ class SessionsApi:
) -> List[Session]: # noqa: E501
...
- @validate_arguments
+ @validate_call
def sessions_get(
self, api_key: StrictStr, async_req: Optional[bool] = None, **kwargs
) -> Union[List[Session], Awaitable[List[Session]]]: # noqa: E501
@@ -90,7 +90,7 @@ class SessionsApi:
kwargs["async_req"] = async_req
return self.sessions_get_with_http_info(api_key, **kwargs) # noqa: E501
- @validate_arguments
+ @validate_call
def sessions_get_with_http_info(
self, api_key: StrictStr, **kwargs
) -> ApiResponse: # noqa: E501
@@ -221,7 +221,7 @@ class SessionsApi:
) -> Session: # noqa: E501
...
- @validate_arguments
+ @validate_call
def sessions_post(
self,
new_session: NewSession,
@@ -263,7 +263,7 @@ class SessionsApi:
new_session, api_key, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def sessions_post_with_http_info(
self, new_session: NewSession, api_key: Optional[StrictStr] = None, **kwargs
) -> ApiResponse: # noqa: E501
@@ -408,7 +408,7 @@ class SessionsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def sessions_session_id_delete(
self,
api_key: StrictStr,
@@ -450,7 +450,7 @@ class SessionsApi:
api_key, session_id, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def sessions_session_id_delete_with_http_info(
self, api_key: StrictStr, session_id: StrictStr, **kwargs
) -> ApiResponse: # noqa: E501
@@ -581,7 +581,7 @@ class SessionsApi:
) -> None: # noqa: E501
...
- @validate_arguments
+ @validate_call
def sessions_session_id_refresh_post(
self,
session_id: StrictStr,
@@ -623,7 +623,7 @@ class SessionsApi:
session_id, api_key, **kwargs
) # noqa: E501
- @validate_arguments
+ @validate_call
def sessions_session_id_refresh_post_with_http_info(
self, session_id: StrictStr, api_key: Optional[StrictStr] = None, **kwargs
) -> ApiResponse: # noqa: E501
diff --git a/packages/python-sdk/e2b/api/client/models/environment.py b/packages/python-sdk/e2b/api/client/models/environment.py
index 6af75f7dd..b8e959b25 100644
--- a/packages/python-sdk/e2b/api/client/models/environment.py
+++ b/packages/python-sdk/e2b/api/client/models/environment.py
@@ -32,14 +32,14 @@ class Environment(BaseModel):
title: Optional[StrictStr] = None
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -52,7 +52,7 @@ class Environment(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -62,7 +62,7 @@ class Environment(BaseModel):
return None
if not isinstance(obj, dict):
- return Environment.parse_obj(obj)
+ return Environment.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -72,7 +72,7 @@ class Environment(BaseModel):
+ obj
)
- _obj = Environment.parse_obj(
+ _obj = Environment.model_validate(
{
"id": obj.get("id"),
"template": obj.get("template"),
diff --git a/packages/python-sdk/e2b/api/client/models/environment_state_update.py b/packages/python-sdk/e2b/api/client/models/environment_state_update.py
index 68151ff78..6b2a3b3ad 100644
--- a/packages/python-sdk/e2b/api/client/models/environment_state_update.py
+++ b/packages/python-sdk/e2b/api/client/models/environment_state_update.py
@@ -30,14 +30,14 @@ class EnvironmentStateUpdate(BaseModel):
state: EnvironmentState = Field(...)
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -50,7 +50,7 @@ class EnvironmentStateUpdate(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -60,7 +60,7 @@ class EnvironmentStateUpdate(BaseModel):
return None
if not isinstance(obj, dict):
- return EnvironmentStateUpdate.parse_obj(obj)
+ return EnvironmentStateUpdate.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -70,5 +70,5 @@ class EnvironmentStateUpdate(BaseModel):
+ obj
)
- _obj = EnvironmentStateUpdate.parse_obj({"state": obj.get("state")})
+ _obj = EnvironmentStateUpdate.model_validate({"state": obj.get("state")})
return _obj
diff --git a/packages/python-sdk/e2b/api/client/models/environment_title_update.py b/packages/python-sdk/e2b/api/client/models/environment_title_update.py
index 53ef331d5..5f9163960 100644
--- a/packages/python-sdk/e2b/api/client/models/environment_title_update.py
+++ b/packages/python-sdk/e2b/api/client/models/environment_title_update.py
@@ -30,14 +30,14 @@ class EnvironmentTitleUpdate(BaseModel):
title: Optional[StrictStr] = None
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -50,7 +50,7 @@ class EnvironmentTitleUpdate(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -60,7 +60,7 @@ class EnvironmentTitleUpdate(BaseModel):
return None
if not isinstance(obj, dict):
- return EnvironmentTitleUpdate.parse_obj(obj)
+ return EnvironmentTitleUpdate.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -70,5 +70,5 @@ class EnvironmentTitleUpdate(BaseModel):
+ obj
)
- _obj = EnvironmentTitleUpdate.parse_obj({"title": obj.get("title")})
+ _obj = EnvironmentTitleUpdate.model_validate({"title": obj.get("title")})
return _obj
diff --git a/packages/python-sdk/e2b/api/client/models/error.py b/packages/python-sdk/e2b/api/client/models/error.py
index ac9292817..5003ab819 100644
--- a/packages/python-sdk/e2b/api/client/models/error.py
+++ b/packages/python-sdk/e2b/api/client/models/error.py
@@ -30,14 +30,14 @@ class Error(BaseModel):
message: StrictStr = Field(..., description="Error")
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -50,7 +50,7 @@ class Error(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -60,7 +60,7 @@ class Error(BaseModel):
return None
if not isinstance(obj, dict):
- return Error.parse_obj(obj)
+ return Error.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -70,5 +70,7 @@ class Error(BaseModel):
+ obj
)
- _obj = Error.parse_obj({"code": obj.get("code"), "message": obj.get("message")})
+ _obj = Error.model_validate(
+ {"code": obj.get("code"), "message": obj.get("message")}
+ )
return _obj
diff --git a/packages/python-sdk/e2b/api/client/models/new_environment.py b/packages/python-sdk/e2b/api/client/models/new_environment.py
index 005a5b9d7..b98a4a8f0 100644
--- a/packages/python-sdk/e2b/api/client/models/new_environment.py
+++ b/packages/python-sdk/e2b/api/client/models/new_environment.py
@@ -31,14 +31,14 @@ class NewEnvironment(BaseModel):
template: StrictStr = Field(...)
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -51,7 +51,7 @@ class NewEnvironment(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -61,7 +61,7 @@ class NewEnvironment(BaseModel):
return None
if not isinstance(obj, dict):
- return NewEnvironment.parse_obj(obj)
+ return NewEnvironment.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -71,7 +71,7 @@ class NewEnvironment(BaseModel):
+ obj
)
- _obj = NewEnvironment.parse_obj(
+ _obj = NewEnvironment.model_validate(
{"title": obj.get("title"), "template": obj.get("template")}
)
return _obj
diff --git a/packages/python-sdk/e2b/api/client/models/new_session.py b/packages/python-sdk/e2b/api/client/models/new_session.py
index 04699ea26..f6352af16 100644
--- a/packages/python-sdk/e2b/api/client/models/new_session.py
+++ b/packages/python-sdk/e2b/api/client/models/new_session.py
@@ -39,14 +39,14 @@ class NewSession(BaseModel):
)
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -59,7 +59,7 @@ class NewSession(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -69,7 +69,7 @@ class NewSession(BaseModel):
return None
if not isinstance(obj, dict):
- return NewSession.parse_obj(obj)
+ return NewSession.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -79,7 +79,7 @@ class NewSession(BaseModel):
+ obj
)
- _obj = NewSession.parse_obj(
+ _obj = NewSession.model_validate(
{
"edit_enabled": obj.get("editEnabled")
if obj.get("editEnabled") is not None
diff --git a/packages/python-sdk/e2b/api/client/models/session.py b/packages/python-sdk/e2b/api/client/models/session.py
index 84fca8a37..908922918 100644
--- a/packages/python-sdk/e2b/api/client/models/session.py
+++ b/packages/python-sdk/e2b/api/client/models/session.py
@@ -11,11 +11,12 @@
Do not edit the class manually.
""" # noqa: E501
-from __future__ import annotations
-import json
+from __future__ import annotations
import pprint
import re # noqa: F401
+import json
+
from pydantic import BaseModel, Field, StrictBool, StrictStr
@@ -43,14 +44,14 @@ class Session(BaseModel):
)
"""Pydantic configuration"""
-
- class Config:
- allow_population_by_field_name = True
- validate_assignment = True
+ model_config = {
+ "populate_by_name": True,
+ "validate_assignment": True,
+ }
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
- return pprint.pformat(self.dict(by_alias=True))
+ return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
@@ -63,7 +64,7 @@ class Session(BaseModel):
def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
+ _dict = self.model_dump(by_alias=True, exclude={}, exclude_none=True)
return _dict
@classmethod
@@ -73,7 +74,7 @@ class Session(BaseModel):
return None
if not isinstance(obj, dict):
- return Session.parse_obj(obj)
+ return Session.model_validate(obj)
# raise errors for additional fields in the input
for _key in obj.keys():
@@ -83,5 +84,12 @@ class Session(BaseModel):
+ obj
)
- _obj = Session.parse_obj(obj)
+ _obj = Session.model_validate(
+ {
+ "code_snippet_id": obj.get("codeSnippetID"),
+ "edit_enabled": obj.get("editEnabled"),
+ "session_id": obj.get("sessionID"),
+ "client_id": obj.get("clientID"),
+ }
+ )
return _obj
diff --git a/packages/python-sdk/results.csv b/packages/python-sdk/results.csv
deleted file mode 100644
index 6b0c39eee..000000000
--- a/packages/python-sdk/results.csv
+++ /dev/null
@@ -1,31 +0,0 @@
-test_name,duration,outcome
-tests/test_filesystem.py::test_list_files,1.1132,passed
-tests/test_filesystem.py::test_list_files,1.1132,passed
-tests/test_filesystem.py::test_read_and_write,1.1141,passed
-tests/test_filesystem.py::test_read_and_write,1.1141,passed
-tests/test_filesystem.py::test_create_file,2.1942,passed
-tests/test_filesystem.py::test_create_file,2.1942,passed
-tests/test_filesystem.py::test_list_delete_files,2.1982,passed
-tests/test_filesystem.py::test_list_delete_files,2.1982,passed
-tests/test_filesystem.py::test_write_bytes,2.6164,passed
-tests/test_filesystem.py::test_write_bytes,2.6164,passed
-tests/test_filesystem.py::test_watch_dir,2.9331,passed
-tests/test_filesystem.py::test_watch_dir,2.9331,passed
-tests/test_filesystem.py::test_read_bytes,1.0897,passed
-tests/test_filesystem.py::test_read_bytes,1.0897,passed
-tests/test_process.py::test_process_on_stdout_stderr,1.5404,passed
-tests/test_process.py::test_process_on_stdout_stderr,1.5404,passed
-tests/test_process.py::test_process_on_exit,2.2502,passed
-tests/test_process.py::test_process_on_exit,2.2502,passed
-tests/test_process.py::test_process_send_stdin,2.4768,passed
-tests/test_process.py::test_process_send_stdin,2.4768,passed
-tests/test_session.py::test_create_session,1.7689,passed
-tests/test_session.py::test_create_session,1.7689,passed
-tests/test_session.py::test_create_multiple_sessions,3.7893,passed
-tests/test_session.py::test_create_multiple_sessions,3.7893,passed
-tests/test_timeout.py::test_create_session_timeout,0.015,passed
-tests/test_timeout.py::test_create_session_timeout,0.015,passed
-tests/test_timeout.py::test_process_timeout,2.5642,passed
-tests/test_timeout.py::test_process_timeout,2.5642,passed
-tests/test_timeout.py::test_filesystem_timeout,1.6521,passed
-tests/test_timeout.py::test_filesystem_timeout,1.6521,passed