Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"""Unit tests for gateway.cwd_placeholder.resolve_placeholder_terminal_cwd."""
|
||||
|
||||
from gateway.cwd_placeholder import resolve_placeholder_terminal_cwd
|
||||
|
||||
|
||||
class TestResolvePlaceholderTerminalCwd:
|
||||
def test_local_placeholder_uses_messaging_cwd(self):
|
||||
assert resolve_placeholder_terminal_cwd(
|
||||
configured_cwd=".",
|
||||
terminal_backend="local",
|
||||
messaging_cwd="/home/user/project",
|
||||
docker_mount_cwd_to_workspace=False,
|
||||
home_fallback="/home/user",
|
||||
) == "/home/user/project"
|
||||
|
||||
|
||||
def test_docker_placeholder_mount_off_unset(self):
|
||||
assert resolve_placeholder_terminal_cwd(
|
||||
configured_cwd=".",
|
||||
terminal_backend="docker",
|
||||
messaging_cwd="/home/user",
|
||||
docker_mount_cwd_to_workspace=False,
|
||||
home_fallback="/home/user",
|
||||
) is None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user