π OpenHands: AI-Driven Development
Remove unnecessary stuff from the sandboxes tests (#2095)
Engel Nyst55fdee31ada3
diff --git a/tests/unit/test_sandbox.py b/tests/unit/test_sandbox.pyindex 15120f4ee6..c12fa2c067 100644--- a/tests/unit/test_sandbox.py+++ b/tests/unit/test_sandbox.py@@ -5,7 +5,7 @@ from unittest.mock import patchimport pytest-from opendevin.core.config import AppConfig, config+from opendevin.core.config import configfrom opendevin.runtime.docker.exec_box import DockerExecBoxfrom opendevin.runtime.docker.local_box import LocalBoxfrom opendevin.runtime.docker.ssh_box import DockerSSHBox, split_bash_commands@@ -19,14 +19,6 @@ def temp_dir(monkeypatch):pathlib.Path().mkdir(parents=True, exist_ok=True)yield temp_dir- # make sure os.environ is clean- monkeypatch.delenv('RUN_AS_DEVIN', raising=False)- monkeypatch.delenv('SANDBOX_TYPE', raising=False)- monkeypatch.delenv('WORKSPACE_BASE', raising=False)-- # make sure config is clean- AppConfig.reset()-def test_env_vars(temp_dir):os.environ['SANDBOX_ENV_FOOBAR'] = 'BAZ'