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"):