mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 11:20:48 -04:00
71 lines
1.6 KiB
Diff
71 lines
1.6 KiB
Diff
https://github.com/pwaller/pyfiglet/commit/b5bb37142ce49ac5376b7f89a0b5508962c6672e
|
|
From: Lyes Saadi <dev@lyes.eu>
|
|
Date: Wed, 27 Dec 2023 20:18:32 +0100
|
|
Subject: [PATCH] Use slant instead of doh to use only fonts-contrib
|
|
|
|
--- a/pyfiglet/tests/test_cli.py
|
|
+++ b/pyfiglet/tests/test_cli.py
|
|
@@ -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
|
|
@@ -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)
|