Exemplo n.º 1
0
def test_font_upscale_on_macos(point_size, point_size_mac, monkeypatch):
    monkeypatch.setattr("sys.platform", "darwin")
    font = Font(point_size)
    assert font.pointSize() == point_size_mac
Exemplo n.º 2
0
def test_font_default(platform, expected, monkeypatch):
    monkeypatch.setattr("sys.platform", platform)
    font = Font()
    assert font.pointSize() == expected