running without arguments prints the help

This commit is contained in:
2026-05-10 16:52:31 +02:00
parent 5a2844c7cb
commit 150cc57932
2 changed files with 19 additions and 1 deletions
+8
View File
@@ -252,6 +252,14 @@ class CliTests(unittest.TestCase):
self.assertNotEqual(result.exit_code, 0)
self.assertIn("Missing option", result.output)
def test_cli_without_arguments_prints_error_and_help(self) -> None:
result = _invoke([])
self.assertEqual(result.exit_code, 1)
self.assertIn("Error: Missing command.", result.stdout)
self.assertIn("Usage:", result.stdout)
self.assertIn("Commands", result.stdout)
def test_cli_help_documents_chroma_folder_env_var(self) -> None:
result = _invoke(["--help"])