Beispiel #1
0
def _backend_check(backend, childprocess, refimgpath, delay):
    enable_ref = bool(refimgpath)
    if enable_ref:
        backend_ref(backend,
                    childprocess=childprocess,
                    refimgpath=refimgpath,
                    delay=delay)
    else:
        backend_size(
            backend,
            childprocess=childprocess,
        )
Beispiel #2
0
def _backend_check(backend, childprocess, refimgpath):
    enable_ref = True
    if sys.platform == "darwin":
        enable_ref = False  # TODO
    if enable_ref:
        backend_ref(
            backend,
            childprocess=childprocess,
            refimgpath=refimgpath,
        )
    else:
        backend_size(
            backend,
            childprocess=childprocess,
        )
Beispiel #3
0
def test_size_pyqt():
    backend_size('pyqt')
Beispiel #4
0
def test_size_gnome_screenshot():
    backend_size('gnome-screenshot', virtual_display=False)
def test_size_gnome_screenshot():
    backend_size('gnome-screenshot', virtual_display=False)
Beispiel #6
0
def test_size_imagemagick():
    backend_size('imagemagick')
Beispiel #7
0
def test_size_wx():
    backend_size('wx')
def test_size_gnome_screenshot():
    backend_size('gnome-screenshot')
Beispiel #9
0
def test_size_pyside():
    backend_size('pyside')
Beispiel #10
0
def test_size_pygdk3():
    backend_size('pygdk3')
Beispiel #11
0
def test_size_pygtk():
    backend_size('pygtk')
def test_size_gnome_screenshot():
    backend_size("gnome-screenshot", childprocess=True)
    backend_size("gnome-screenshot", childprocess=False)
Beispiel #13
0
def test_size_pyqt5():
    backend_size('pyqt5')
Beispiel #14
0
def test_size_scrot():
    backend_size('scrot')