Fix Review 64 valuation authority regressions
This commit is contained in:
@@ -43,6 +43,25 @@ def test_interface_contract_documents_public_valuation_enums_validation_and_mapp
|
||||
assert marker in interface, marker
|
||||
|
||||
|
||||
def test_data_model_documents_valuation_selection_contract_and_index_mapping() -> None:
|
||||
data_model = _text("docs/data-model.md")
|
||||
|
||||
required_contract = (
|
||||
"select_account_valuation",
|
||||
"account_id is mandatory",
|
||||
"currency and valuation_kind/purpose are optional filters",
|
||||
"basis_date exact match or <= upper bound",
|
||||
"verified leaf valuations only",
|
||||
"future-dated and unverified valuations are excluded",
|
||||
"idx_account_valuations_account_date supports account/date selection",
|
||||
"idx_account_valuations_status_date supports status/date selection",
|
||||
"neither index covers account + currency + purpose",
|
||||
"idempotency and single_correction indexes enforce write integrity, not selection",
|
||||
)
|
||||
for marker in required_contract:
|
||||
assert marker in data_model, marker
|
||||
|
||||
|
||||
def test_loan_cache_writers_document_no_inferred_valuation_history() -> None:
|
||||
data_model = _text("docs/data-model.md")
|
||||
interface = _text("docs/interface-contract.md")
|
||||
|
||||
Reference in New Issue
Block a user