from bt import backend_to_check, gnome, kde, prog_check # 'gnome-screenshot' makes strange effects on screen. # It can disturb later tests. # Make this test the last by starting the name with 'x' if gnome(): if prog_check(["gnome-screenshot", "--version"]): def test_gnome_screenshot(): assert not kde() # the flash effect can be seen on the next screenshot, # so some delay is needed backend_to_check("gnome-screenshot", delay=1)
from pyscreenshot.util import py2 from bt import backend_to_check, gnome, kde # no jeepney for py2 if gnome() and not py2(): def test_gnome_dbus(): assert not kde() backend_to_check("gnome_dbus")
def test_kwin_dbus(): assert not gnome() backend_to_check("kwin_dbus")