Skip to content

Commit 80311c3

Browse files
committed
Reduced failure message output
1 parent 9b22b8b commit 80311c3

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/test_comment_spell_check.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_basic(self):
1717
[
1818
"python",
1919
"comment_spell_check.py",
20-
"--verbose",
20+
"--miss",
2121
"--dict",
2222
"tests/dict.txt",
2323
"--prefix",
@@ -26,17 +26,15 @@ def test_basic(self):
2626
],
2727
stdout=subprocess.PIPE,
2828
)
29-
self.assertEqual(
30-
runresult.returncode, 0, "Basic test FAIL: " + str(runresult.stdout)
31-
)
29+
self.assertEqual(runresult.returncode, 0, runresult.stdout)
3230

3331
def test_codebase(self):
3432
"""Code base test"""
3533
runresult = subprocess.run(
3634
[
3735
"python",
3836
"comment_spell_check.py",
39-
"--verbose",
37+
"--miss",
4038
"--prefix",
4139
"myprefix",
4240
"--suffix",
@@ -47,9 +45,7 @@ def test_codebase(self):
4745
],
4846
stdout=subprocess.PIPE,
4947
)
50-
self.assertEqual(
51-
runresult.returncode, 0, "Code test FAIL: " + str(runresult.stdout)
52-
)
48+
self.assertEqual(runresult.returncode, 0, runresult.stdout)
5349

5450
def test_version(self):
5551
"""Version test"""
@@ -61,7 +57,7 @@ def test_version(self):
6157
],
6258
stdout=subprocess.PIPE,
6359
)
64-
self.assertEqual(runresult.returncode, 0, "Version test FAIL")
60+
self.assertEqual(runresult.returncode, 0)
6561

6662
version_string = str(runresult.stdout)
6763
self.assertNotEqual(

0 commit comments

Comments
 (0)