updated cli_test.py to no longer expect raised SystemExit exceptions
Signed-off-by: Tony Witherspoon <tony.witherspoon@gmail.com>
This commit is contained in:
parent
129fb5b356
commit
5d0aab4a8e
1 changed files with 0 additions and 6 deletions
|
|
@ -64,12 +64,6 @@ class CLITestCase(unittest.TestCase):
|
||||||
self.assertTrue(project.client)
|
self.assertTrue(project.client)
|
||||||
self.assertTrue(project.services)
|
self.assertTrue(project.services)
|
||||||
|
|
||||||
def test_command_help(self):
|
|
||||||
with pytest.raises(SystemExit) as exc:
|
|
||||||
TopLevelCommand.help({'COMMAND': 'up'})
|
|
||||||
|
|
||||||
assert 'Usage: up' in exc.exconly()
|
|
||||||
|
|
||||||
def test_command_help_nonexistent(self):
|
def test_command_help_nonexistent(self):
|
||||||
with pytest.raises(NoSuchCommand):
|
with pytest.raises(NoSuchCommand):
|
||||||
TopLevelCommand.help({'COMMAND': 'nonexistent'})
|
TopLevelCommand.help({'COMMAND': 'nonexistent'})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue