@@ -1603,7 +1603,7 @@ def test_lineNumberWidthMode(self):
16031603 revert_changed_mode = notepad .getLineNumberWidthMode ()
16041604 self .assertTrue (revert_changed_mode == mode , msg = "Expected same modes, got {} and {}" .format (mode , changed_mode ))
16051605
1606-
1606+ # TODO: How can this be tested in a meaningful way?
16071607 def test_getExternalLexerAutoIndentMode (self ):
16081608 ''' '''
16091609 notepad_method = notepad .getExternalLexerAutoIndentMode
@@ -1618,19 +1618,20 @@ def test_getExternalLexerAutoIndentMode(self):
16181618 with self .assertRaises (ArgumentError ):
16191619 self ._invalid_parameter_passed (notepad_method , '' ,'' )
16201620
1621-
1621+ # TODO: How can this be tested in a meaningful way?
16221622 def test_setExternalLexerAutoIndentMode (self ):
16231623 ''' '''
16241624 self .__test_invalid_parameter_passed (notepad .setExternalLexerAutoIndentMode )
16251625
1626-
1626+ # TODO: How can this be tested in a meaningful way?
16271627 def test_isAutoIndention (self ):
16281628 ''' '''
16291629 self .__test_invalid_parameter_passed (notepad .isAutoIndention )
16301630
16311631
1632+ suite = unittest .TestLoader ().loadTestsFromTestCase (NotepadTestCase )
1633+
16321634if __name__ == '__main__' :
1633- suite = unittest .TestLoader ().loadTestsFromTestCase (NotepadTestCase )
16341635 alltests = unittest .TestSuite (suite )
16351636
16361637 results = unittest .TestResult ()
@@ -1653,10 +1654,7 @@ def writeTestFailure(error):
16531654 console .writeError ('Tests Run: {}\n Errors : {}\n Failures: {}\n ' .format (results .testsRun , len (results .errors ), len (results .failures )))
16541655 else :
16551656 console .write ('Tests Run: {}\n Errors : {}\n Failures: {}\n ' .format (results .testsRun , len (results .errors ), len (results .failures )))
1656- if results .skipped :
1657- console .write ('Skipped: {}\n ' .format (len (results .skipped )))
1658- for skipped_test in results .skipped :
1659- console .write (' {} - {}\n ' .format (skipped_test [0 ], skipped_test [1 ]))
1660- # console.show()
1661- else :
1662- suite = unittest .TestLoader ().loadTestsFromTestCase (NotepadTestCase )
1657+ if results .skipped :
1658+ console .write ('Skipped: {}\n ' .format (len (results .skipped )))
1659+ for skipped_test in results .skipped :
1660+ console .write (' {} - {}\n ' .format (skipped_test [0 ], skipped_test [1 ]))
0 commit comments