From 4c5bc31b0e651c995eb9dec8fe43656496b71ee1 Mon Sep 17 00:00:00 2001 From: chendelian <116870791@qq.com> Date: Sun, 7 Jun 2026 12:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/cli/app.py | 1 + tests/test_config_bootstrap.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/cli/app.py b/scripts/cli/app.py index de146b5..77f8668 100644 --- a/scripts/cli/app.py +++ b/scripts/cli/app.py @@ -57,6 +57,7 @@ def _print_full_usage() -> None: print(" python main.py logs [--limit N] [--status s] [--task-type t] [--target-id tid]") print(" python main.py log-get ") print(" python main.py health") + print(" python main.py config-path") print(" python main.py version") diff --git a/tests/test_config_bootstrap.py b/tests/test_config_bootstrap.py index 6adc509..6fca057 100644 --- a/tests/test_config_bootstrap.py +++ b/tests/test_config_bootstrap.py @@ -76,10 +76,10 @@ class TestConfigBootstrap(unittest.TestCase): with open(path, "w", encoding="utf-8") as f: f.write("# empty user\n") config.reset_cache() - self.assertEqual( - config.get("OPENCLAW_TEST_TARGET", "simulator_rpa"), - config.get("OPENCLAW_TEST_TARGET") or "simulator_rpa", - ) + with open(example, encoding="utf-8") as f: + example_text = f.read() + self.assertIn("OPENCLAW_TEST_TARGET=simulator_rpa", example_text) + self.assertEqual(config.get("OPENCLAW_TEST_TARGET"), "simulator_rpa") def test_config_path_outputs_json(self) -> None: with IsolatedDataRoot(user_id="_cfg_path"):