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()
Exemple #2
0
def create_pitivi(**settings):
    app = Pitivi()
    app._setup()

    app.gui = mock.Mock()
    app.gui.editor.viewer.action_group = Gio.SimpleActionGroup()

    app.settings = __create_settings(**settings)
    app.gui.editor.editor_state = EditorState(app.project_manager)

    return app
Exemple #3
0
def create_pitivi(**settings):
    app = Pitivi()
    app._setup()
    app.gui = mock.Mock()
    app.settings = __create_settings(**settings)
    return app
 def test_create(self):
     """Exercise creating the main window."""
     app = Pitivi()
     app._setup()
     app.create_main_window()
Exemple #5
0
def create_pitivi(**settings):
    app = Pitivi()
    app._setup()
    app.gui = mock.Mock()
    app.settings = __create_settings(**settings)
    return app