mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-10 10:15:58 +00:00
883e65384f
git-subtree-dir: spiffworkflow-backend git-subtree-split: 50f28073add91265f00826bd175c8b2fff76cdc5
18 lines
435 B
Python
18 lines
435 B
Python
"""Test cases for the __main__ module."""
|
|
import pytest
|
|
from click.testing import CliRunner
|
|
|
|
from spiffworkflow_backend 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
|