mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 17:43:11 -04:00
dev-python/pyfiglet: add 1.0.2
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
70
dev-python/pyfiglet/files/pyfiglet-1.0.2-fix-test.patch
Normal file
70
dev-python/pyfiglet/files/pyfiglet-1.0.2-fix-test.patch
Normal file
@@ -0,0 +1,70 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user