Passed
Pull Request — master (#2)
by William
01:19
created

test_module_renamer.test_command_line_interface()   A

Complexity

Conditions 4

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 9
rs 9.2
c 0
b 0
f 0
cc 4
nop 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