Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
@@ -0,0 +1,28 @@
"""Regression tests for local terminal initial cwd normalization."""
from pathlib import Path
from tools.environments.local import LocalEnvironment, _resolve_local_initial_cwd
def test_relative_initial_cwd_resolves_from_parent(tmp_path, monkeypatch):
project = tmp_path / "hermes-agent"
project.mkdir()
monkeypatch.chdir(tmp_path)
assert _resolve_local_initial_cwd("hermes-agent") == str(project)
def test_local_environment_keeps_existing_relative_child_cwd(tmp_path, monkeypatch):
project = tmp_path / "hermes-agent"
project.mkdir()
monkeypatch.chdir(tmp_path)
env = LocalEnvironment(cwd="hermes-agent", timeout=5)
try:
result = env.execute("pwd", timeout=5)
finally:
env.cleanup()
assert result["returncode"] == 0
assert result["output"].strip() == str(project)