Implement BAT-009 manual asset CRUD and snapshot close
This commit is contained in:
@@ -118,6 +118,18 @@ def test_list_report_and_mutation_success_envelope_contract(tmp_path: Path) -> N
|
||||
assert mutation["success"] is True
|
||||
_assert_subset_schema(mutation, contract["mutation_success_envelope"], "mutation_success_envelope")
|
||||
|
||||
manual_asset = service.create_manual_asset("Synthetic Deposit", 2_000_000, "2026-06-30", "deposit", source_note="synthetic contract", db_path=db_path)
|
||||
assert manual_asset["success"] is True
|
||||
_assert_subset_schema(manual_asset, contract["manual_asset_mutation"], "manual_asset_mutation")
|
||||
|
||||
preview = service.preview_asset_snapshot_close("2026-06-30", db_path=db_path)
|
||||
assert preview["success"] is True
|
||||
_assert_subset_schema(preview, contract["asset_snapshot_preview"], "asset_snapshot_preview")
|
||||
|
||||
close = service.close_asset_snapshot("2026-06-30", source_note="synthetic contract close", db_path=db_path)
|
||||
assert close["success"] is True
|
||||
_assert_subset_schema(close, contract["asset_snapshot_close"], "asset_snapshot_close")
|
||||
|
||||
accounts = service.list_ledger_accounts(db_path=db_path)
|
||||
assert accounts["success"] is True
|
||||
assert accounts["count"] >= 2
|
||||
|
||||
Reference in New Issue
Block a user