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

test_module_renamer.response()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
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