Skip to content

Commit

Permalink
Remove ifmain clauses from unit tests
Browse files Browse the repository at this point in the history
Not needed.
  • Loading branch information
jamesls committed Jun 3, 2015
1 parent f2ae2bb commit 7c65c0f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,3 @@ def test_with_missing_command(self):
self.kp_run('kp ')
stderr = captured.getvalue()
self.assertIn('kp: error: too few arguments', stderr)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,3 @@ def test_binary_written_to_stdin(self):
copier.copy(unicode_password)
popen.return_value.communicate.assert_called_with(
unicode_password.encode('utf-8'))


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions tests/test_keepassx.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,3 @@ def test_non_cp1252_compatible_chars_replaced(self):
# Or in other words:
self.assertEqual(encode_password(u"\u2714"),
encode_password(u"\u2713"))


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

0 comments on commit 7c65c0f

Please sign in to comment.