We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cada9 commit 6f1ee8cCopy full SHA for 6f1ee8c
tests/test_comment_spell_check.py
@@ -54,3 +54,24 @@ def test_comment_spell_check(self):
54
self.fail(
55
"Self code test: comment_spell_check.py process returned bad code"
56
)
57
+
58
+ print("\nTest version")
59
+ runresult = subprocess.run(
60
+ [
61
+ "python",
62
+ "comment_spell_check.py",
63
+ "--version",
64
+ ],
65
+ stdout = subprocess.PIPE,
66
+ )
67
+ print("Return code:", runresult.returncode)
68
+ print("Version: ", runresult.stdout)
69
+ version_string = str(runresult.stdout)
70
+ if runresult.returncode:
71
+ self.fail(
72
+ "Self code test: comment_spell_check.py process returned bad code"
73
74
+ if "unknown" in version_string:
75
76
+ "Self code test: version string contains \'unknown\'"
77
0 commit comments