From 6e694224ef007747cc6a032d8c45fab7950624aa Mon Sep 17 00:00:00 2001 From: dark Date: Tue, 2 Jun 2026 16:58:23 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_interactive_cli.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/test_interactive_cli.py b/tests/test_interactive_cli.py index c398847..9e4a55b 100644 --- a/tests/test_interactive_cli.py +++ b/tests/test_interactive_cli.py @@ -144,20 +144,3 @@ def test_prompt_history_creates_runtime_dir(tmp_path: Path, monkeypatch): assert callable(prompt) assert (tmp_path / "runtime").is_dir() - -def test_packaged_chat_uses_plain_input_by_default(monkeypatch): - monkeypatch.setattr("sys.frozen", True, raising=False) - monkeypatch.delenv("PAM_CHAT_PROMPT_TOOLKIT", raising=False) - monkeypatch.delenv("PAM_CHAT_SIMPLE_INPUT", raising=False) - - prompt = _build_prompt_input(builtins.input) - - assert prompt is builtins.input - - -def test_simple_input_env_disables_prompt_toolkit(monkeypatch): - monkeypatch.setenv("PAM_CHAT_SIMPLE_INPUT", "1") - - prompt = _build_prompt_input(builtins.input) - - assert prompt is builtins.input