Improving project structure with Hyper Python.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2021-05-21 13:43:34 -04:00
parent e369ec91ec
commit 1c937afb60
37 changed files with 1817 additions and 143 deletions

1
tests/__init__.py Normal file
View File

@@ -0,0 +1 @@
"""Test suite for the playlist package."""

17
tests/test_main.py Normal file
View File

@@ -0,0 +1,17 @@
"""Test cases for the __main__ module."""
import pytest
from click.testing import CliRunner
from playlist import __main__
@pytest.fixture
def runner() -> CliRunner:
"""Fixture for invoking command-line interfaces."""
return CliRunner()
def test_main_succeeds(runner: CliRunner) -> None:
"""It exits with a status code of zero."""
result = runner.invoke(__main__.main)
assert result.exit_code == 0