def testMainHelp(self):
"""testing the help of the main"""
runner = CliRunner()
result = runner.invoke(main.entry_point, ['--help'])
expected_output = ('Usage: entry_point [OPTIONS] COMMAND [ARGS]...\n'
'\n'
'Options:\n'
' --help Show this message and exit.\n'
'\n'
'Commands:''\n'
' sqlite\n')
self.assertEqual(expected_output, str(result.output))
self.assertEqual(0, result.exit_code)
评论列表
文章目录