Conditions | 1 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python |
||
13 | def test_command_line_interface(): |
||
14 | """Test the CLI.""" |
||
15 | runner = CliRunner() |
||
16 | result = runner.invoke(cli.main) |
||
17 | assert result.output == '()\n' |
||
18 | assert result.exit_code == 0 |
||
19 | assert 'trending_homebrew.cli.main' in result.output |
||
20 | help_result = runner.invoke(cli.main, ['--help']) |
||
21 | assert help_result.exit_code == 0 |
||
22 | assert '--help Show this message and exit.' in help_result.output |
||
23 | |||
27 |