[pitivi] Changed alignment_editor test to use the transformation_expander instead of making a new instance of
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Changed alignment_editor test to use the transformation_expander instead of making a new instance of
- Date: Sun, 10 May 2020 19:32:29 +0000 (UTC)
commit 44b5a0f9c7c6e21f7d7cfd47b538979e0f18d581
Author: Jackson Eickhoff <jacksoneick gmail com>
Date: Sun May 10 14:16:31 2020 -0500
Changed alignment_editor test to use the transformation_expander instead of making a new instance of the
class.
tests/test_clipproperties.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test_clipproperties.py b/tests/test_clipproperties.py
index d51b0a81..0e2c3ef0 100644
--- a/tests/test_clipproperties.py
+++ b/tests/test_clipproperties.py
@@ -382,10 +382,10 @@ class ClipPropertiesTest(BaseTestUndoTimeline, BaseTestTimeline):
clipproperties.new_project_loaded_cb(None, self.project)
self.project.pipeline.get_position = mock.Mock(return_value=0)
- transformation_box = TransformationProperties(self.app)
+ transformation_box = clipproperties.transformation_expander
transformation_box._new_project_loaded_cb(self.app, self.project)
- timeline = transformation_box.app.gui.editor.timeline_ui.timeline
+ timeline = timeline_container.timeline
clip = self.add_clips_simple(timeline, 1)[0]
timeline.selection.select([clip])
source = transformation_box.source
@@ -402,7 +402,7 @@ class ClipPropertiesTest(BaseTestUndoTimeline, BaseTestTimeline):
event.x = 0
event.y = 0
alignment_editor._motion_notify_event_cb(None, event)
- alignment_editor._button_release_event_cb(alignment_editor, None)
+ alignment_editor._button_release_event_cb(None, None)
self.assertEqual(source.get_child_property("posx").value, -width)
self.assertEqual(source.get_child_property("posy").value, -height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]