MCPcopy
hub / github.com/qtile/qtile / test_kill

Function test_kill

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

Source from the content-addressed store, hash-verified

240
241@scratchpad_config
242def test_kill(manager):
243 manager.c.group["SCRATCHPAD"].dropdown_reconfigure("dd-a")
244
245 manager.test_window("one")
246 assert_focused(manager, "one")
247
248 # dd-a has no window associated yet
249 assert "window" not in manager.c.group["SCRATCHPAD"].dropdown_info("dd-a")
250
251 # First toggling: wait for window
252 manager.c.group["SCRATCHPAD"].dropdown_toggle("dd-a")
253 is_spawned(manager, "dd-a")
254 assert_focused(manager, "dd-a")
255 assert manager.c.group["SCRATCHPAD"].dropdown_info("dd-a")["window"]["name"] == "dd-a"
256
257 # kill current window "dd-a"
258 manager.c.window.kill()
259 manager.c.sync()
260 is_killed(manager, "dd-a")
261 assert_focused(manager, "one")
262 assert "window" not in manager.c.group["SCRATCHPAD"].dropdown_info("dd-a")
263
264
265@scratchpad_config

Callers

nothing calls this directly

Calls 9

assert_focusedFunction · 0.90
is_killedFunction · 0.85
dropdown_reconfigureMethod · 0.80
test_windowMethod · 0.80
dropdown_infoMethod · 0.80
dropdown_toggleMethod · 0.80
syncMethod · 0.80
is_spawnedFunction · 0.70
killMethod · 0.45

Tested by

no test coverage detected