Skip to content

Commit

Permalink
Fix search result parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Nov 11, 2024
1 parent 9e07b8d commit 1a56a18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_cli_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,14 @@ def test_search_highlight(self, invoke):
"""
result = invoke("--cargo", "search", "co")
assert result.exit_code == 0
# co
assert "β”‚ \x1b[32m\x1b[1mco\x1b[0m " in result.stdout
# co2mon
assert "β”‚ \x1b[32m\x1b[1mco\x1b[0m2mon " in result.stdout
# acco
assert "β”‚ ac\x1b[32m\x1b[1mco\x1b[0m " in result.stdout
# bicoro
assert "β”‚ bi\x1b[32m\x1b[1mco\x1b[0mro " in result.stdout
# more_cargo_co
assert "β”‚ more_cargo_\x1b[32m\x1b[1mco\x1b[0m " in result.stdout
# cocomo-core
assert (
"β”‚ \x1b[32m\x1b[1mcoco\x1b[0mmo-\x1b[32m\x1b[1mco\x1b[0mre "
Expand Down

0 comments on commit 1a56a18

Please sign in to comment.