mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-26 17:47:19 +01:00
Test total-block-refresh dispatch
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWWzuCEg1m87jpKyRrw
This commit is contained in:
parent
7ea3e9e734
commit
971c5b067e
@ -1,4 +1,4 @@
|
|||||||
"""Tests for the main CLI: enforce and gaming-unblock dispatch."""
|
"""Tests for the main CLI: enforce, gaming-unblock, total-block-refresh dispatch."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
@ -56,3 +56,15 @@ class TestMainDispatchGamingCommands:
|
|||||||
):
|
):
|
||||||
main()
|
main()
|
||||||
mock_cmd.assert_called_once_with([])
|
mock_cmd.assert_called_once_with([])
|
||||||
|
|
||||||
|
def test_total_block_refresh_dispatches_with_its_tail_args(self) -> None:
|
||||||
|
"""total-block-refresh hands its argv tail to the handler and exits."""
|
||||||
|
argv = ["prog", "total-block-refresh", "--dry-run"]
|
||||||
|
with (
|
||||||
|
cli_run(argv, total_block=False),
|
||||||
|
patch(f"{PKG}.cmd_total_block_refresh", return_value=3) as mock_cmd,
|
||||||
|
pytest.raises(SystemExit) as exc_info,
|
||||||
|
):
|
||||||
|
main()
|
||||||
|
assert exc_info.value.code == 3
|
||||||
|
mock_cmd.assert_called_once_with(["--dry-run"])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user