Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.
test: he list template filters method rows
dex0shubham53b6c2152240
diff --git a/tests/cli/test_list_template.py b/tests/cli/test_list_template.pyindex 36df70e..e576d44 100644--- a/tests/cli/test_list_template.py+++ b/tests/cli/test_list_template.py@@ -19,3 +19,24 @@ def test_list_template_lang_zh_no_methods_hides_methods():assert result.exit_code == 0, result.outputassert "method/" not in result.outputassert "chunk_rag" not in result.output+++def test_query_filters_method_rows():+ """--query must narrow method rows, not just presets."""+ result = runner.invoke(app, ["list", "template", "--query", "biography"])+ assert result.exit_code == 0, result.output+ assert "biography" in result.output+ assert "method/" not in result.output+++def test_autotype_filters_method_rows():+ """--autotype must exclude methods of other types."""+ result = runner.invoke(app, ["list", "template", "--autotype", "list"])+ assert result.exit_code == 0, result.output+ assert "graph_rag" not in result.output+++def test_query_keeps_matching_method_rows():+ result = runner.invoke(app, ["list", "template", "--query", "chunk_rag"])+ assert result.exit_code == 0, result.output+ assert "chunk_rag" in result.output