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, )
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, )
def test_size_pyqt(): backend_size('pyqt')
def test_size_gnome_screenshot(): backend_size('gnome-screenshot', virtual_display=False)
def test_size_imagemagick(): backend_size('imagemagick')
def test_size_wx(): backend_size('wx')
def test_size_gnome_screenshot(): backend_size('gnome-screenshot')
def test_size_pyside(): backend_size('pyside')
def test_size_pygdk3(): backend_size('pygdk3')
def test_size_pygtk(): backend_size('pygtk')
def test_size_gnome_screenshot(): backend_size("gnome-screenshot", childprocess=True) backend_size("gnome-screenshot", childprocess=False)
def test_size_pyqt5(): backend_size('pyqt5')
def test_size_scrot(): backend_size('scrot')