tests.test_cli   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
wmc 0
1
"""Sample integration test module using pytest-describe and expecter."""
2
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison
3
4
# import pytest
5
# from expecter import expect
6
#
7
# from click.testing import CliRunner
8
#
9
# from responsibly.cli import main
10
#
11
#
12
# @pytest.fixture
13
# def runner():
14
#     return CliRunner()
15
#
16
#
17
# def describe_cli():
18
#
19
#     def describe_conversion():
20
#
21
#         def when_integer(runner):
22
#             result = runner.invoke(main, ['42'])
23
#
24
#             expect(result.exit_code) == 0
25
#             expect(result.output) == "12.80165\n"
26
#
27
#         def when_invalid(runner):
28
#             result = runner.invoke(main, ['foobar'])
29
#
30
#             expect(result.exit_code) == 0
31
#             expect(result.output) == ""
32