mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Remove unnecessary stuff from the sandboxes tests (#2095)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user