示例#1
0
文件: test_cli.py 项目: w0rp/vint
    def assertExitWithFailure(self, argv):
        with mock.patch('sys.argv', argv):
            with self.assertRaises(SystemExit) as e:
                cli = CLI()
                cli.start()

            self.assertNotEqual(e.exception.code, 0)
示例#2
0
文件: test_cli.py 项目: RianFuro/vint
    def assertExitWithFailure(self, argv):
        with mock.patch("sys.argv", argv):
            with self.assertRaises(SystemExit) as e:
                cli = CLI()
                cli.start()

            self.assertNotEqual(e.exception.code, 0)
示例#3
0
def init_cli():
    cli = CLI()
    cli.start()
示例#4
0
文件: bootstrap.py 项目: rhysd/vint
def init_cli():
    cli = CLI()
    cli.start()