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

test_module_renamer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_command_line_interface() 0 9 4
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