def test_example_other_ui_solar_system(self) -> None: """ Test solar system. """ app = ui_solarsystem.main(test=True) self.assertFalse(app.menu._disable_draw) app.process_events(PygameUtils.keydown([pygame.K_p]), app.menu) self.assertTrue(app.menu._disable_draw) app.process_events(PygameUtils.keydown([pygame.K_p, pygame.K_q, pygame.K_e, pygame.K_s, pygame.K_c]), app.menu) self.assertFalse(app.menu._disable_draw) test_reset_surface()
def test_example_other_ui_solar_system(self) -> None: """ Test solar system. """ if SYS_PLATFORM_OSX: return app = ui_solarsystem.main(test=True) self.assertFalse(app.menu._disable_draw) app.process_events(PygameEventUtils.keydown([pygame.K_p]), app.menu) self.assertTrue(app.menu._disable_draw) app.process_events( PygameEventUtils.keydown( [pygame.K_p, pygame.K_q, pygame.K_e, pygame.K_s, pygame.K_c]), app.menu) self.assertFalse(app.menu._disable_draw)
def test_example_other_ui_solar_system() -> None: """ Test solar system. """ ui_solarsystem.main(test=True) test_reset_surface()