Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/editor/test_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,15 +1278,15 @@ def boom(*a, **kw):
calls = []
with caplog.at_level(logging.INFO):
opener.open_editor(
project_name="investment", dev_service_name="dev", workdir="/work/investment",
project_name="myapp-ml", dev_service_name="dev", workdir="/work/myapp-ml",
environ={"VSCODE_IPC_HOOK_CLI": "/run/x.sock",
"SSH_CONNECTION": "192.168.1.16 5 192.168.1.201 22",
"DEVBASE_EDITOR_SSH_HOST": ""},
isatty=True, ipc_alive=True, launcher=lambda cmd, env: calls.append(cmd),
docker_context="wsl",
)
uri = calls[0][2]
assert "@ssh-remote+" not in uri and uri.endswith("/work/investment")
assert "@ssh-remote+" not in uri and uri.endswith("/work/myapp-ml")
assert _decode(uri)["settings"]["context"] == "wsl"
text = "\n".join(r.getMessage() for r in caplog.records)
assert "同名" not in text # ネストしていないので案内は出ない
Expand Down
Loading