소스 검색

updated cli_test.py to no longer expect raised SystemExit exceptions

Signed-off-by: Tony Witherspoon <[email protected]>
Tony Witherspoon 9 년 전
부모
커밋
5d0aab4a8e
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      tests/unit/cli_test.py

+ 0 - 6
tests/unit/cli_test.py

@@ -64,12 +64,6 @@ class CLITestCase(unittest.TestCase):
         self.assertTrue(project.client)
         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):
         with pytest.raises(NoSuchCommand):
             TopLevelCommand.help({'COMMAND': 'nonexistent'})