@@ -11,14 +11,6 @@ def setUp(self):
1111 os .environ ['LC_ALL' ] = 'en_US.UTF-8'
1212 os .environ ['LANG' ] = 'en_US.UTF-8'
1313
14-
15- def test_help ():
16- runner = CliRunner ()
17- result = runner .invoke (cli .notification )
18- assert result .exit_code == 0
19- assert "Usage: " in result .output
20-
21-
2214 @patch ('simple_notifications.cli.simple_notifications_config.PUSHOVER_APP_TOKEN' , 'fake_token' )
2315 @patch ('simple_notifications.cli.simple_notifications_config.USER_KEY' , 'fake_user_key' )
2416 @patch ('requests.post' )
@@ -32,7 +24,6 @@ def test_pushover(self, mock_post):
3224 self .assertIn ('Sending out Pushover notification...' , result .output )
3325 self .assertIn ('Sending complete.' , result .output )
3426
35-
3627 @patch ('simple_notifications.cli.simple_notifications_config.PUSHBULLET_APP_TOKEN' , 'fake_token' )
3728 @patch ('requests.post' )
3829 def test_pushbullet (self , mock_post ):
@@ -45,7 +36,6 @@ def test_pushbullet(self, mock_post):
4536 self .assertIn ('Sending out Pushbullet notification...' , result .output )
4637 self .assertIn ('Sending complete.' , result .output )
4738
48-
4939 @patch ('simple_notifications.cli.simple_notifications_config.EMAIL_SENDER' , 'test@example.com' )
5040 @patch ('simple_notifications.cli.simple_notifications_config.EMAIL_SERVER' , 'smtp.example.com' )
5141 @patch ('simple_notifications.cli.simple_notifications_config.EMAIL_SERVER_PORT' , '587' )
@@ -62,6 +52,5 @@ def test_email(self, mock_smtp):
6252 self .assertIn ('Sending complete.' , result .output )
6353 mock_smtp_instance .sendmail .assert_called_once ()
6454
65-
6655if __name__ == '__main__' :
6756 unittest .main ()
0 commit comments