Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def grid(qtile):
qtile.test_window('a')
qtile.test_window('b')
qtile.c.layout.previous()
qtile.c.layout.mode_vertical()
qtile.test_window('c')
qtile.c.layout.right()
qtile.c.layout.mode_vertical()
qtile.test_window('d')
def test_directions(self, qtile, grid):
assert_focused(qtile, 'd')
qtile.c.layout.left()
assert_focused(qtile, 'c')
qtile.c.layout.up()
assert_focused(qtile, 'a')
qtile.c.layout.right()
assert_focused(qtile, 'b')
qtile.c.layout.down()
assert_focused(qtile, 'd')
qtile.c.layout.down()
assert_focused(qtile, 'd')
qtile.c.layout.previous()
assert_focused(qtile, 'b')
qtile.c.layout.next()
assert_focused(qtile, 'd')