Skip to content

Commit c11c09a

Browse files
committed
Fix tests.
1 parent 2c7f867 commit c11c09a

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

tests/test_filename.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,38 @@ def test_get_filename_with_variable_font(self):
2323
font = self._get_font("/Tourney/Tourney-Italic-VariableFont_wdth,wght.ttf")
2424
self.assertEqual(
2525
font.get_filename(),
26-
"Tourney-Italic-Variable[wdth,wght].ttf",
26+
"Tourney-Italic[wdth,wght].ttf",
2727
)
2828

2929
font = self._get_font("/Tourney/Tourney-VariableFont_wdth,wght.ttf")
3030
self.assertEqual(
3131
font.get_filename(),
32-
"Tourney-Variable[wdth,wght].ttf",
32+
"Tourney[wdth,wght].ttf",
3333
)
3434

3535
font = self._get_font("/Roboto_Mono/RobotoMono-Italic-VariableFont_wght.ttf")
3636
self.assertEqual(
3737
font.get_filename(),
38-
"RobotoMono-Italic-Variable[wght].ttf",
38+
"RobotoMono-Italic[wght].ttf",
3939
)
4040

4141
font = self._get_font("/Roboto_Mono/RobotoMono-VariableFont_wght.ttf")
4242
self.assertEqual(
4343
font.get_filename(),
44-
"RobotoMono-Variable[wght].ttf",
44+
"RobotoMono[wght].ttf",
4545
)
4646

4747
def test_get_filename_with_variable_font_and_custom_suffixes(self):
48+
font = self._get_font("/Tourney/Tourney-VariableFont_wdth,wght.ttf")
49+
self.assertEqual(
50+
font.get_filename(
51+
variable_suffix="Variable",
52+
variable_axes_tags=False,
53+
variable_axes_values=False,
54+
),
55+
"Tourney-Variable.ttf",
56+
)
57+
4858
font = self._get_font("/Tourney/Tourney-VariableFont_wdth,wght.ttf")
4959
self.assertEqual(
5060
font.get_filename(

0 commit comments

Comments
 (0)