From 2bf2b9db4bb378e7499b05dfe548a2964655ee2f Mon Sep 17 00:00:00 2001 From: Chen Linxuan Date: Tue, 16 Sep 2025 16:10:35 +0800 Subject: [PATCH] tests: fix tests when PINYIN_COMP_MODE is defined --- tests/integration_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 3bad1dd..a296950 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -16,6 +16,8 @@ impl<'a> TestCase<'a> { let mut cmd = Command::cargo_bin("bash-pinyin-completion-rs") .unwrap_or_else(|_| panic!("Failed to create command for test")); + cmd.env_remove("PINYIN_COMP_MODE"); + for (key, value) in self.envs.unwrap_or(&HashMap::new()) { cmd.env(key, value); }