Skip to content

Commit

Permalink
Use slant instead of doh to use only fonts-contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
LyesSaadi authored and peterbrittain committed Dec 28, 2023
1 parent a93c5ba commit b5bb371
Showing 1 changed file with 12 additions and 34 deletions.
46 changes: 12 additions & 34 deletions pyfiglet/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,13 @@ def test_font_dir():


def test_strip():
command = "pyfiglet -f doh -s 0"
command = "pyfiglet -f slant -s 0"
expected = '''\
000000000
00:::::::::00
00:::::::::::::00
0:::::::000:::::::0
0::::::0 0::::::0
0:::::0 0:::::0
0:::::0 0:::::0
0:::::0 000 0:::::0
0:::::0 000 0:::::0
0:::::0 0:::::0
0:::::0 0:::::0
0::::::0 0::::::0
0:::::::000:::::::0
00:::::::::::::00
00:::::::::00
000000000
____
/ __ \\
/ / / /
/ /_/ /
\\____/
'''
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE)
assert result.stdout.decode() == expected
Expand Down Expand Up @@ -58,25 +47,14 @@ def test_strip_strange_font(test_font_dir):

# normalize is just strip with padding
def test_normalize():
command = "pyfiglet -f doh -n 0"
command = "pyfiglet -f slant -n 0"
expected = '''\
000000000
00:::::::::00
00:::::::::::::00
0:::::::000:::::::0
0::::::0 0::::::0
0:::::0 0:::::0
0:::::0 0:::::0
0:::::0 000 0:::::0
0:::::0 000 0:::::0
0:::::0 0:::::0
0:::::0 0:::::0
0::::::0 0::::::0
0:::::::000:::::::0
00:::::::::::::00
00:::::::::00
000000000
____
/ __ \\
/ / / /
/ /_/ /
\\____/
'''
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE)
Expand Down

0 comments on commit b5bb371

Please sign in to comment.