| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | |||
| 4 | """Tests for `module_renamer` package.""" |
||
| 5 | |||
| 6 | from click.testing import CliRunner |
||
| 7 | |||
| 8 | from module_renamer import cli |
||
| 9 | |||
| 10 | |||
| 11 | def test_command_line_interface(): |
||
| 12 | """Test the CLI.""" |
||
| 13 | runner = CliRunner() |
||
| 14 | result = runner.invoke(cli.main) |
||
| 15 | assert result.exit_code == 0 |
||
| 16 | |||
| 17 | help_result = runner.invoke(cli.main, ['--help']) |
||
| 18 | assert help_result.exit_code == 0 |
||
| 19 | assert '--help Show this message and exit.' in help_result.output |
||
| 20 |