Remove unnecessary stuff from the sandboxes tests (#2095)

This commit is contained in:
Engel Nyst
2024-05-27 17:20:02 +02:00
committed by GitHub
parent 3c5c214d87
commit 55fdee31ad

View File

@@ -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'