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 78bb567 commit f774a3b
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 @@ -96,15 +96,15 @@ def test_unicode_search(self, invoke):
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Package ID โ”‚ Name โ”‚ Manager โ”‚ Latest version โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 1536361140 โ”‚ ไธšๅŠกๆŽŒไธญ๏ผŒๆœ‰่ฝจ่ฟน็š„้’‰๏ผŒๅค–ๅ‹ค็ฎก็† โ”‚ mas โ”‚ 4.29 โ”‚
โ”‚ 1536361140 โ”‚ ไธšๅŠกๆŽŒไธญ๏ผŒๆœ‰่ฝจ่ฟน็š„้’‰๏ผŒๅค–ๅ‹ค็ฎก็† โ”‚ mas โ”‚ 4.29 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
Test originates from #16.
"""
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 f774a3b

Please sign in to comment.