FFFFF                                                                    [100%]
=================================== FAILURES ===================================
_____ TestSearchOutputBranches.test_search_table_renders_markup_literally ______

self = <tests.unit.cli.test_search.TestSearchOutputBranches object at 0x11be13a70>
tmp_path = PosixPath('/private/var/folders/1q/2qhztsp1673fnqgrpblxnpd40000gn/T/pytest-of-forrest/pytest-431/test_search_table_renders_mark0')

    def test_search_table_renders_markup_literally(self, tmp_path: Path) -> None:
        """CR-01: markup-bearing query/title/collection render literally in the table."""
        row = self._result(title="notes [/3] review", collection_name="[WIP] col")
    
        result, _ = self._invoke_bm25(tmp_path, ["[/3]-notes"], [row])
    
>       assert result.exit_code == 0
E       assert 1 == 0
E        +  where 1 = <Result MarkupError("closing tag '[/3]' at position 6 doesn't match any open tag")>.exit_code

tests/unit/cli/test_search.py:1899: AssertionError
______ TestSearchOutputBranches.test_query_table_renders_markup_literally ______

self = <tests.unit.cli.test_search.TestSearchOutputBranches object at 0x11be13ac0>
tmp_path = PosixPath('/private/var/folders/1q/2qhztsp1673fnqgrpblxnpd40000gn/T/pytest-of-forrest/pytest-431/test_query_table_renders_marku0')

    def test_query_table_renders_markup_literally(self, tmp_path: Path) -> None:
        """CR-01: the hybrid query table escapes markup-bearing user data."""
        row = self._result(title="notes [/3] review", collection_name="[WIP] col")
    
        result, _ = self._invoke_query(tmp_path, ["[/3]-notes"], [row])
    
>       assert result.exit_code == 0
E       assert 1 == 0
E        +  where 1 = <Result MarkupError("closing tag '[/3]' at position 6 doesn't match any open tag")>.exit_code

tests/unit/cli/test_search.py:1909: AssertionError
_____ TestSearchOutputBranches.test_vsearch_table_renders_markup_literally _____

self = <tests.unit.cli.test_search.TestSearchOutputBranches object at 0x11be13b10>
tmp_path = PosixPath('/private/var/folders/1q/2qhztsp1673fnqgrpblxnpd40000gn/T/pytest-of-forrest/pytest-431/test_vsearch_table_renders_mar0')

    def test_vsearch_table_renders_markup_literally(self, tmp_path: Path) -> None:
        """CR-01: the vector search table escapes markup-bearing user data."""
        row = self._result(title="notes [/3] review", collection_name="[WIP] col")
    
        result, _ = self._invoke_vsearch(tmp_path, ["[/3]-notes"], [row])
    
>       assert result.exit_code == 0
E       assert 1 == 0
E        +  where 1 = <Result MarkupError("closing tag '[/3]' at position 6 doesn't match any open tag")>.exit_code

tests/unit/cli/test_search.py:1919: AssertionError
_ TestSearchOutputBranches.test_line_numbers_content_cell_renders_markup_literally _

self = <tests.unit.cli.test_search.TestSearchOutputBranches object at 0x11be13b60>
tmp_path = PosixPath('/private/var/folders/1q/2qhztsp1673fnqgrpblxnpd40000gn/T/pytest-of-forrest/pytest-431/test_line_numbers_content_cell0')

    def test_line_numbers_content_cell_renders_markup_literally(self, tmp_path: Path) -> None:
        """CR-01: the --line-numbers Content cell escapes bracket sequences in content."""
        row = self._result(content="line one\n[/] marker line")
    
        result, _ = self._invoke_bm25(tmp_path, ["notes", "--line-numbers"], [row])
    
>       assert result.exit_code == 0
E       assert 1 == 0
E        +  where 1 = <Result MarkupError("closing tag '[/]' at position 21 has nothing to close")>.exit_code

tests/unit/cli/test_search.py:1929: AssertionError
____ TestSearchOutputBranches.test_explain_output_renders_markup_literally _____

self = <tests.unit.cli.test_search.TestSearchOutputBranches object at 0x11be13bb0>
tmp_path = PosixPath('/private/var/folders/1q/2qhztsp1673fnqgrpblxnpd40000gn/T/pytest-of-forrest/pytest-431/test_explain_output_renders_ma0')

    def test_explain_output_renders_markup_literally(self, tmp_path: Path) -> None:
        """CR-01: --explain prints escape the interpolated query and result titles."""
        row = self._result(title="notes [/3] review")
    
        result, _ = self._invoke_query(tmp_path, ["[/3]-notes", "--explain"], [row])
    
>       assert result.exit_code == 0
E       assert 1 == 0
E        +  where 1 = <Result MarkupError("closing tag '[/3]' at position 6 doesn't match any open tag")>.exit_code

tests/unit/cli/test_search.py:1938: AssertionError
=========================== short test summary info ============================
FAILED tests/unit/cli/test_search.py::TestSearchOutputBranches::test_search_table_renders_markup_literally
FAILED tests/unit/cli/test_search.py::TestSearchOutputBranches::test_query_table_renders_markup_literally
FAILED tests/unit/cli/test_search.py::TestSearchOutputBranches::test_vsearch_table_renders_markup_literally
FAILED tests/unit/cli/test_search.py::TestSearchOutputBranches::test_line_numbers_content_cell_renders_markup_literally
FAILED tests/unit/cli/test_search.py::TestSearchOutputBranches::test_explain_output_renders_markup_literally
5 failed, 85 deselected in 0.18s
