def test_panel_gather_no_screen(fixture_useful_screens): p = Panel(instance_per_screen=False, keep_unplugged_screens=True) disable_spawn_bar(p) p.gather() try: threading.Thread(target=p.start).start() time.sleep(0.1) assert p.gather() == "" finally: p.stop()
def test_panel_gather_one_screen(): p = Panel(instance_per_screen=False, keep_unplugged_screens=True) w = TextWidget(text="test") s = Screen() p.add_screen(s) s.add_widget("l", w) w.update() assert p.gather() == "%{l}test"