Exemplo n.º 1
0
def test_keys(display):
    xc = core.Core(display)
    try:
        assert "a" in xc.get_keys()
        assert "shift" in xc.get_modifiers()
    finally:
        xc.finalize()
Exemplo n.º 2
0
def test_no_two_qtiles(manager):
    try:
        core.Core(manager.display).finalize()
    except core.ExistingWMException:
        pass
    else:
        raise Exception("expected an error on multiple qtiles connecting")
Exemplo n.º 3
0
def test_no_two_qtiles(xmanager):
    with pytest.raises(core.ExistingWMException):
        core.Core(xmanager.display).finalize()
Exemplo n.º 4
0
def test_keys(manager_nospawn):
    xc = core.Core(manager_nospawn.display)
    assert "a" in xc.get_keys()
    assert "shift" in xc.get_modifiers()