Skip to content

Commit

Permalink
Remove leftover __main__ from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Cooke committed May 18, 2017
1 parent 14f947e commit 148a652
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions tests/test_mod_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,3 @@ def test_display_len(self):
self.assertEqual(justify_cyrillic, justify_ascii)
self.assertEqual(justify_cjk, justify_ascii - diff_cjk)
self.assertEqual(justify_combo, justify_ascii - diff_combo)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_mod_term.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ def test_line_width(self):
self.assertIsInstance(width, int)
self.assertEqual(width, 1)
self.assertLessEqual(width_no_args, term.MAX_LINE_WIDTH)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_mod_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,3 @@ def test_filter_by_wildcard(self):
self.assertEqual(out_wildcard, ("george",))
self.assertEqual(out_single, ("helen",))
self.assertEqual(out_partial, ())


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_see.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,3 @@ def test_see_object_has_help(self):
# Assert
self.assertTrue('help()' in out_help)
self.assertFalse('help()' in out_nohelp)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_see_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,3 @@ def test_float(self):

self.check_ops('float literal', lit_ops, lit_see)
self.check_ops('float object', obj_ops, obj_see)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_term_width.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,3 @@ def test_default_line_width(self):
line_width = term.line_width()

self.assertEqual(line_width, term.DEFAULT_LINE_WIDTH)


if __name__ == '__main__':
unittest.main()

0 comments on commit 148a652

Please sign in to comment.