mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-13 09:10:45 +08:00
15 lines
647 B
Python
15 lines
647 B
Python
"""订阅执行治理最终受控规模门禁。"""
|
|
|
|
from scripts.validation.subscription_governance_scale import run_acceptance
|
|
|
|
|
|
def test_subscription_governance_controlled_scale_matrix() -> None:
|
|
"""两档最终矩阵必须同时满足正确性、压力、恢复和幂等门禁。"""
|
|
result = run_acceptance()
|
|
|
|
assert result["passed"] is True
|
|
assert all(result["gates"].values())
|
|
assert [case["subscription_count"] for case in result["match_cases"]] == [100, 200]
|
|
assert [case["site_count"] for case in result["match_cases"]] == [10, 20]
|
|
assert min(case["candidate_count"] for case in result["match_cases"]) >= 1000
|