Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Nov 13, 2024
1 parent f774a3b commit 8017abe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cli_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ def test_unicode_search(self, invoke):
Test originates from #16.
"""
result = invoke("--mas", "search", "钉钉")
result = invoke("--mas", "search", "")
assert result.exit_code == 0
assert "" in result.stdout
assert "\x1b[32m\x1b[1m钉\x1b[0m" in result.stdout
assert "" in result.stdout
assert "\x1b[32m\x1b[1m业\x1b[0m" in result.stdout

# PyPi's online search API was at first rate-limited. So we added an artificial
# 2-seconds delay to prevent the following error:
Expand Down

0 comments on commit 8017abe

Please sign in to comment.