From 21ba62f034fca466044582f97bf91cc095503b75 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 2 Nov 2025 17:26:22 +0100 Subject: [PATCH] Outline: Add integration test with real `cratedb-outline.yaml` --- tests/test_real.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/test_real.py diff --git a/tests/test_real.py b/tests/test_real.py new file mode 100644 index 0000000..dfda26a --- /dev/null +++ b/tests/test_real.py @@ -0,0 +1,21 @@ +from click.testing import CliRunner + +from cratedb_about.cli import cli + + +def test_outline_cli_llms_txt_real(): + """ + Validate processing the real `src/cratedb_about/outline/cratedb-outline.yaml`. + """ + runner = CliRunner() + + result = runner.invoke( + cli, + args=["outline", "--format", "llms-txt"], + catch_exceptions=False, + ) + assert result.exit_code == 0, result.output + + assert "CrateDB is a distributed database written in Java" in result.output + assert "CrateDB node-specific settings" in result.output + assert "CrateDB Toolkit: Import example datasets" in result.output