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 1
1
from pathlib import Path
2
2
3
- from PyQt5 .QtWidgets import QTableView
4
-
5
3
from slice .models import FontModel
6
4
7
5
#
@@ -13,6 +11,14 @@ def get_font_path_vf():
13
11
return Path ("tests/assets/fonts/Recursive-VF.subset.ttf" ).resolve ()
14
12
15
13
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
+
16
22
def get_font_string_vf ():
17
23
return str (Path ("tests/assets/fonts/Recursive-VF.subset.ttf" ).resolve ())
18
24
@@ -49,6 +55,16 @@ def test_font_model_is_variable_font_true_with_path():
49
55
assert fm .is_variable_font () is True
50
56
51
57
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
+
52
68
def test_font_model_is_variable_font_false_with_path ():
53
69
fm = FontModel (get_font_path_static ())
54
70
assert fm .is_variable_font () is False
You can’t perform that action at this time.
0 commit comments