File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 11from pathlib import Path
22
3- from PyQt5 .QtWidgets import QTableView
4-
53from slice .models import FontModel
64
75#
@@ -13,6 +11,14 @@ def get_font_path_vf():
1311 return Path ("tests/assets/fonts/Recursive-VF.subset.ttf" ).resolve ()
1412
1513
14+ def get_font_path_vf_woff ():
15+ return Path ("tests/assets/fonts/Recursive-VF.subset.woff" ).resolve ()
16+
17+
18+ def get_font_path_vf_woff2 ():
19+ return Path ("tests/assets/fonts/Recursive-VF.subset.woff2" ).resolve ()
20+
21+
1622def get_font_string_vf ():
1723 return str (Path ("tests/assets/fonts/Recursive-VF.subset.ttf" ).resolve ())
1824
@@ -49,6 +55,16 @@ def test_font_model_is_variable_font_true_with_path():
4955 assert fm .is_variable_font () is True
5056
5157
58+ def test_font_model_is_variable_font_true_with_path_woff ():
59+ fm = FontModel (get_font_path_vf_woff ())
60+ assert fm .is_variable_font () is True
61+
62+
63+ def test_font_model_is_variable_font_true_with_path_woff2 ():
64+ fm = FontModel (get_font_path_vf_woff2 ())
65+ assert fm .is_variable_font () is True
66+
67+
5268def test_font_model_is_variable_font_false_with_path ():
5369 fm = FontModel (get_font_path_static ())
5470 assert fm .is_variable_font () is False
You can’t perform that action at this time.
0 commit comments