[pitivi] tests: Make sure all tests can be run by nosetests3



commit 0de971073c52d195a1515da87d8544dd27700d3d
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Apr 2 15:49:16 2014 +0200

    tests: Make sure all tests can be run by nosetests3

 tests/test_application.py |    4 ++--
 tests/test_check.py       |    4 ++--
 tests/test_common.py      |    3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/tests/test_application.py b/tests/test_application.py
index c283bb3..5c0fe26 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -20,7 +20,7 @@
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-from common import TestCase
+from tests import common
 
 from pitivi import application
 from pitivi import configure
@@ -31,7 +31,7 @@ class MockGioFile(object):
         return (True, result)
 
 
-class TestPitivi(TestCase):
+class TestPitivi(common.TestCase):
 
     def testBasic(self):
         app = application.Pitivi()
diff --git a/tests/test_check.py b/tests/test_check.py
index 30be252..0201ea6 100644
--- a/tests/test_check.py
+++ b/tests/test_check.py
@@ -20,7 +20,7 @@
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-from common import TestCase
+from tests import common
 
 from pitivi import check
 
@@ -32,7 +32,7 @@ class FakeDependency(check.Dependency):
         return self.import_result
 
 
-class TestDependency(TestCase):
+class TestDependency(common.TestCase):
 
     def testBoolEvaluation(self):
         dependency = FakeDependency(modulename="module1", version_required_string=None)
diff --git a/tests/test_common.py b/tests/test_common.py
index d3b9396..9b47d4a 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -19,7 +19,8 @@
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-import common
+from tests import common
+
 import pitivi.utils.ui as ui_common
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]