blob: a1b97bed1413ffbd52856719b394e4c097cdb665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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)
|