MCPcopy
hub / github.com/qtile/qtile / test_focus_cycle

Function test_focus_cycle

test/test_scratchpad.py:163–186  ·  view source on GitHub ↗
(manager)

Source from the content-addressed store, hash-verified

161
162@scratchpad_config
163def test_focus_cycle(manager):
164 manager.c.group["SCRATCHPAD"].dropdown_reconfigure("dd-a")
165 manager.c.group["SCRATCHPAD"].dropdown_reconfigure("dd-b")
166
167 manager.test_window("one")
168 # spawn dd-a by toggling
169 assert_focused(manager, "one")
170
171 manager.c.group["SCRATCHPAD"].dropdown_toggle("dd-a")
172 is_spawned(manager, "dd-a")
173 assert_focused(manager, "dd-a")
174
175 manager.test_window("two")
176 assert_focused(manager, "two")
177
178 # spawn dd-b by toggling
179 manager.c.group["SCRATCHPAD"].dropdown_toggle("dd-b")
180 is_spawned(manager, "dd-b")
181 assert_focused(manager, "dd-b")
182
183 # check all windows
184 assert sorted(manager.c.group["a"].info()["windows"]) == ["dd-a", "dd-b", "one", "two"]
185
186 assert_focus_path(manager, "one", "two", "dd-a", "dd-b")
187
188
189@scratchpad_config

Callers

nothing calls this directly

Calls 7

assert_focusedFunction · 0.90
assert_focus_pathFunction · 0.90
dropdown_reconfigureMethod · 0.80
test_windowMethod · 0.80
dropdown_toggleMethod · 0.80
is_spawnedFunction · 0.70
infoMethod · 0.45

Tested by

no test coverage detected