Skip to content

Commit 5e46ea1

Browse files
committed
tests: use absolute imports for test.helper
Signed-off-by: David Aguilar <[email protected]>
1 parent 0bb5155 commit 5e46ea1

9 files changed

+16
-9
lines changed

test/__init__.py

Whitespace-only changes.

test/browse_model_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
"""Covers interfaces used by the classic view."""
22
from __future__ import unicode_literals
33

4-
import helper
54
from cola import core
65
from cola import gitcmds
76
from cola.models.main import MainModel
87

8+
from test import helper
9+
910

1011
class ClassicModelTestCase(helper.GitRepositoryTestCase):
1112
"""Tests interfaces used by the classic view."""

test/core_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from __future__ import unicode_literals
44
import unittest
55

6-
import helper
7-
86
from cola import core
97

8+
from test import helper
9+
1010

1111
class CoreColaUnicodeTestCase(unittest.TestCase):
1212
"""Tests the cola.core module's unicode handling

test/diffparse_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from cola import diffparse
88
from cola.diffparse import DiffParser
99

10-
import helper
10+
from test import helper
1111

1212

1313
class DiffParseModel(object):

test/gitcfg_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
import unittest
44

5-
import helper
65
from cola import gitcfg
76

7+
from test import helper
8+
89

910
class GitConfigTestCase(helper.GitRepositoryTestCase):
1011
"""Tests the cola.gitcmds module."""

test/gitcmds_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import os
44
import unittest
55

6-
import helper
76
from cola import gitcmds
87
from cola import gitcfg
98

9+
from test import helper
10+
1011

1112
class GitCmdsTestCase(helper.GitRepositoryTestCase):
1213
"""Tests the cola.gitcmds module."""

test/gitops_test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
import unittest
66

7-
import helper
87
from cola import core
98
from cola.models.main import MainModel
109

10+
from test import helper
11+
12+
1113
class ColaBasicGitTestCase(helper.GitRepositoryTestCase):
1214

1315
def setUp(self):

test/main_model_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import os
44
import unittest
55

6-
import helper
76
from cola import core
87
from cola.models.main import MainModel
98

9+
from test import helper
10+
1011

1112
class MainModelTestCase(helper.GitRepositoryTestCase):
1213
"""Tests the MainModel class."""

test/settings_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import unittest
44
import os
55

6-
import helper
76
from cola.settings import Settings
87

8+
from test import helper
9+
910

1011
class SettingsTestCase(unittest.TestCase):
1112
"""Tests the cola.settings module"""

0 commit comments

Comments
 (0)