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
|
Description: Ensure font tests use Liberation Sans
Author: Nick Morrott <nickm@debian.org>
Forwarded: not-needed
Last-Update: 2022-02-06
---
--- a/tests/common_test.py
+++ b/tests/common_test.py
@@ -6,7 +6,7 @@
from tkinter import Spinbox
# find a suitable font to test with
-SUITABLE_FONTS = ["Times New Roman", "Liberation Serif", "Impact", "FreeSans"]
+SUITABLE_FONTS = ["Liberation Sans"]
TEST_FONT = None
from tkinter import Tk, font
root = Tk()
@@ -417,7 +417,7 @@
assert sw.visible
assert sw.width is None
assert sw.height is None
-
+
s2 = Spinbox(from_=0, to=10)
sw = container.add_tk_widget(s2, align="left", visible=False, enabled=False, width="fill", height="fill")
assert s is not None
@@ -429,7 +429,7 @@
assert sw.height == "fill"
def auto_layout_test(widget, align):
-
+
assert widget.master.layout == "auto"
side = "top" if align is None else align
assert widget.tk.pack_info()["side"] == side
@@ -496,4 +496,4 @@
def icon_test(widget, file_name):
widget.icon = file_name
assert widget.icon == file_name
- assert widget._icon.tk_image is not None
\ No newline at end of file
+ assert widget._icon.tk_image is not None
|