33import os
44
55
6- class TestCodespell (unittest .TestCase ):
6+ class TestCommentSpellCheck (unittest .TestCase ):
77 @classmethod
88 def setUpClass (self ):
9- print ("\n Setting up codespell tests" )
9+ print ("\n Setting up comment_spell_check tests" )
1010
1111 @classmethod
1212 def tearDownClass (cls ):
13- print ("\n Tearing down dicom2stl tests" )
13+ print ("\n Tearing down comment_spell_check tests" )
1414
15- def test_codespell (self ):
16- print ("\n Codespell simple test" )
15+ def test_comment_spell_check (self ):
16+ print ("\n Command_spell_check simple test" )
1717 cwd = os .getcwd ()
1818 print (cwd )
1919 runresult = subprocess .run (
2020 [
2121 "python" ,
22- "codespell .py" ,
22+ "comment_spell_check .py" ,
2323 "--verbose" ,
2424 "--dict" ,
2525 "tests/dict.txt" ,
@@ -30,15 +30,15 @@ def test_codespell(self):
3030 )
3131 print ("Return code:" , runresult .returncode )
3232 if runresult .returncode :
33- self .fail ("Simple test: codespell process returned bad code" )
33+ self .fail ("Simple test: comment_spell_check.py process returned bad code" )
3434
35- print ("\n Codespell test on itself" )
35+ print ("\n Comment_spell_check test on itself" )
3636 cwd = os .getcwd ()
3737 print (cwd )
3838 runresult = subprocess .run (
3939 [
4040 "python" ,
41- "codespell .py" ,
41+ "comment_spell_check .py" ,
4242 "--verbose" ,
4343 "--prefix" ,
4444 "myprefix" ,
@@ -51,4 +51,6 @@ def test_codespell(self):
5151 )
5252 print ("Return code:" , runresult .returncode )
5353 if runresult .returncode :
54- self .fail ("Self code test: codespell process returned bad code" )
54+ self .fail (
55+ "Self code test: comment_spell_check.py process returned bad code"
56+ )
0 commit comments