Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """Test cases for the __main__ module.""" |
||
2 | import pytest |
||
|
|||
3 | from click.testing import CliRunner |
||
4 | |||
5 | from trending_homebrew import __main__ |
||
6 | |||
7 | |||
8 | @pytest.fixture |
||
9 | def runner() -> CliRunner: |
||
10 | """Fixture for invoking command-line interfaces.""" |
||
11 | return CliRunner() |
||
12 | |||
13 | |||
14 | def test_main_succeeds(runner: CliRunner) -> None: |
||
15 | """It exits with a status code of zero.""" |
||
16 | result = runner.invoke(__main__.main) |
||
17 | assert result.exit_code == 0 |
||
18 |