def test_render_png():
    renderer = QImageSvgRenderer('resources/images/gns3_icon_256x256.png')
    assert renderer.isValid()
def test_render_svg():
    renderer = QImageSvgRenderer('resources/symbols/router.svg')
    assert renderer.isValid()
예제 #3
0
def test_render_text_svg():
    renderer = QImageSvgRenderer('<svg></svg>')
    assert renderer.isValid()
예제 #4
0
def test_render_text_broken_svg():
    renderer = QImageSvgRenderer('<svg></svg')
    assert renderer.isValid() is False
예제 #5
0
def test_render_png():
    renderer = QImageSvgRenderer('resources/images/MNSS.ico')
    assert renderer.isValid()