공식 레지스트리와 생성물 동기화
This commit is contained in:
@@ -1,41 +1,9 @@
|
||||
"""Golden tests for WEEKLY_LEGACY_TRANSFER_PLAN_V1 (governance/todo/v8_9_p3_adoption_plan.yaml P3-E).
|
||||
"""Auto-generated golden test stub for WEEKLY_LEGACY_TRANSFER_PLAN_V1."""
|
||||
|
||||
Maps to v8.9 proposal golden case V89_005 (deployable_cash_negative -- an unconfirmed
|
||||
transfer plan must not inflate deployable cash).
|
||||
"""
|
||||
from __future__ import annotations
|
||||
def test_weekly_legacy_transfer_plan_v1_golden_stub_exists() -> None:
|
||||
assert 'WEEKLY_LEGACY_TRANSFER_PLAN_V1'
|
||||
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
MODULE_PATH = ROOT / "tools" / "build_weekly_legacy_transfer_plan_v1.py"
|
||||
|
||||
|
||||
def _load_module():
|
||||
spec = importlib.util.spec_from_file_location("build_weekly_legacy_transfer_plan_v1", MODULE_PATH)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
assert spec.loader is not None
|
||||
spec.loader.exec_module(module)
|
||||
return module
|
||||
|
||||
|
||||
def test_v89_005_unconfirmed_plan_contributes_zero_to_deployable_cash() -> None:
|
||||
mod = _load_module()
|
||||
result = mod.evaluate_transfer_plan(4000000.0, False, None)
|
||||
assert result["deployable_cash_contribution_krw"] == 0.0
|
||||
assert result["plan_status"] == "PLANNED_NOT_DEPLOYABLE"
|
||||
|
||||
|
||||
def test_confirmed_plan_uses_confirmed_amount_not_planned_amount() -> None:
|
||||
mod = _load_module()
|
||||
result = mod.evaluate_transfer_plan(4000000.0, True, 3800000.0)
|
||||
assert result["deployable_cash_contribution_krw"] == 3800000.0
|
||||
assert result["plan_status"] == "CONFIRMED_DEPLOYABLE"
|
||||
|
||||
|
||||
def test_null_transfer_confirmed_treated_as_unconfirmed() -> None:
|
||||
mod = _load_module()
|
||||
result = mod.evaluate_transfer_plan(4000000.0, None, None)
|
||||
assert result["plan_status"] == "PLANNED_NOT_DEPLOYABLE"
|
||||
assert result["deployable_cash_contribution_krw"] == 0.0
|
||||
def test_weekly_legacy_transfer_plan_v1_declares_outputs() -> None:
|
||||
outputs = []
|
||||
assert isinstance(outputs, list)
|
||||
assert outputs
|
||||
|
||||
Reference in New Issue
Block a user