def test_create_small(self): """Exercise creating the main window when the screen is small.""" with mock.patch.object(MainWindow, "_small_screen") as small_screen: small_screen.return_value = True with mock.patch.object(MainWindow, "get_preferred_size") as get: get.return_value = mock.Mock(), None app = Pitivi() app._setup() app.create_main_window()
def test_create(self): """Exercise creating the main window.""" app = Pitivi() app._setup() app.create_main_window()