浏览代码

Remove unnecessary stuff from the sandboxes tests (#2095)

Engel Nyst 1 年之前
父节点
当前提交
55fdee31ad
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1 9
      tests/unit/test_sandbox.py

+ 1 - 9
tests/unit/test_sandbox.py

@@ -5,7 +5,7 @@ from unittest.mock import patch
 
 import pytest
 
-from opendevin.core.config import AppConfig, config
+from opendevin.core.config import config
 from opendevin.runtime.docker.exec_box import DockerExecBox
 from opendevin.runtime.docker.local_box import LocalBox
 from 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'