[pitivi] tests: Fix test_utils_timeline to work with nosetests
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests: Fix test_utils_timeline to work with nosetests
- Date: Wed, 16 Sep 2015 15:49:57 +0000 (UTC)
commit a50d1d9e42a75b01c1923f68ab059c061a056496
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Jul 10 18:19:09 2015 +0200
tests: Fix test_utils_timeline to work with nosetests
Summary: Depends on D254
Reviewers: Mathieu_Du, aleb
Differential Revision: https://phabricator.freedesktop.org/D255
tests/test_utils_timeline.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/test_utils_timeline.py b/tests/test_utils_timeline.py
index f68c1e7..94fd29a 100644
--- a/tests/test_utils_timeline.py
+++ b/tests/test_utils_timeline.py
@@ -22,7 +22,8 @@ from unittest import TestCase
from gi.repository import GES
-from common import createTestClip
+from tests import common
+
from pitivi.utils.timeline import Selected, Selection, SELECT, SELECT_ADD, \
UNSELECT
@@ -55,8 +56,8 @@ class TestSelection(TestCase):
def testGetSingleClip(self):
selection = Selection()
- clip1 = createTestClip(GES.UriClip)
- clip2 = createTestClip(GES.TitleClip)
+ clip1 = common.createTestClip(GES.UriClip)
+ clip2 = common.createTestClip(GES.TitleClip)
# Selection empty.
self.assertFalse(selection.getSingleClip(GES.TitleClip))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]