Skip to content

Commit 8b84312

Browse files
committed
Outline: Add integration test with real cratedb-outline.yaml
1 parent 39ee68f commit 8b84312

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test_real.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from click.testing import CliRunner
2+
3+
from cratedb_about.cli import cli
4+
5+
6+
def test_outline_cli_llms_txt_real():
7+
"""
8+
Validate processing the real `src/cratedb_about/outline/cratedb-outline.yaml`.
9+
"""
10+
runner = CliRunner()
11+
12+
result = runner.invoke(
13+
cli,
14+
args=["outline", "--format", "llms-txt"],
15+
catch_exceptions=False,
16+
)
17+
assert result.exit_code == 0, result.output
18+
19+
assert "CrateDB is a distributed database written in Java" in result.output
20+
assert "CrateDB node-specific settings" in result.output
21+
assert "CrateDB Toolkit: Import example datasets" in result.output

0 commit comments

Comments
 (0)