2018-09-01 15:19:25 +00:00
|
|
|
from click.testing import CliRunner
|
2018-09-13 22:20:20 +00:00
|
|
|
|
2018-09-07 10:43:06 +00:00
|
|
|
from cli.main import cli
|
2018-09-01 15:19:25 +00:00
|
|
|
|
|
|
|
|
2018-09-13 22:20:20 +00:00
|
|
|
def test_help_message():
|
2018-09-01 15:19:25 +00:00
|
|
|
runner = CliRunner()
|
|
|
|
result = runner.invoke(cli, ['--help'], catch_exceptions=False)
|
|
|
|
|
|
|
|
assert result.exit_code == 0
|
2018-09-10 20:01:20 +00:00
|
|
|
assert 'Usage: cli [OPTIONS] COMMAND [ARGS]' in result.output, 'Missing or invalid help text was produced.'
|