mirror of
https://github.com/certbot/certbot.git
synced 2026-01-23 07:20:55 +03:00
Update cli tests
We don't expect to error out if called with no args
This commit is contained in:
@@ -40,7 +40,9 @@ class CLITest(unittest.TestCase):
|
||||
return ret, stdout, stderr, client
|
||||
|
||||
def test_no_flags(self):
|
||||
self.assertRaises(SystemExit, self._call, [])
|
||||
with mock.patch('letsencrypt.cli.run') as mock_run:
|
||||
self._call([])
|
||||
self.assertEqual(1, mock_run.call_count)
|
||||
|
||||
def test_help(self):
|
||||
self.assertRaises(SystemExit, self._call, ['--help'])
|
||||
|
||||
Reference in New Issue
Block a user