summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_error.py4
-rw-r--r--tests/test_git_command.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_error.py b/tests/test_error.py
index 2733ab8c..2b28f5c2 100644
--- a/tests/test_error.py
+++ b/tests/test_error.py
@@ -21,12 +21,16 @@ import unittest
21import error 21import error
22import project 22import project
23import git_command 23import git_command
24import fetch
25import command
24from subcmds import all_modules 26from subcmds import all_modules
25 27
26imports = all_modules + [ 28imports = all_modules + [
27 error, 29 error,
28 project, 30 project,
29 git_command, 31 git_command,
32 fetch,
33 command,
30] 34]
31 35
32 36
diff --git a/tests/test_git_command.py b/tests/test_git_command.py
index 1e8beabc..3dd31b29 100644
--- a/tests/test_git_command.py
+++ b/tests/test_git_command.py
@@ -204,12 +204,12 @@ class GitRequireTests(unittest.TestCase):
204 204
205 def test_older_fatal(self): 205 def test_older_fatal(self):
206 """Test fatal require calls with old versions.""" 206 """Test fatal require calls with old versions."""
207 with self.assertRaises(SystemExit) as e: 207 with self.assertRaises(git_command.GitRequireError) as e:
208 git_command.git_require((2,), fail=True) 208 git_command.git_require((2,), fail=True)
209 self.assertNotEqual(0, e.code) 209 self.assertNotEqual(0, e.code)
210 210
211 def test_older_fatal_msg(self): 211 def test_older_fatal_msg(self):
212 """Test fatal require calls with old versions and message.""" 212 """Test fatal require calls with old versions and message."""
213 with self.assertRaises(SystemExit) as e: 213 with self.assertRaises(git_command.GitRequireError) as e:
214 git_command.git_require((2,), fail=True, msg="so sad") 214 git_command.git_require((2,), fail=True, msg="so sad")
215 self.assertNotEqual(0, e.code) 215 self.assertNotEqual(0, e.code)