mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 03:04:52 +02:00
Update tests for current UI and rule behavior
This commit is contained in:
+2
-2
@@ -120,7 +120,7 @@ def test_housekeeper_creates_membership_claims_retroactively_since_entry(tmp_pat
|
||||
"membership-fee:2025:annual",
|
||||
"membership-fee:2026:annual",
|
||||
}
|
||||
assert claims_by_key["membership-fee:2024:annual"]["amount"] == "150.00"
|
||||
assert claims_by_key["membership-fee:2024:annual"]["amount"] == "112.50"
|
||||
|
||||
|
||||
def test_housekeeper_uses_pre_2022_contribution_amounts_for_legacy_years(tmp_path) -> None:
|
||||
@@ -180,7 +180,7 @@ def test_housekeeper_resolves_tasks_not_seen_in_current_run(tmp_path) -> None:
|
||||
repository.save_member(member)
|
||||
housekeeper.run(today=date(2026, 6, 21))
|
||||
state = json.loads((repository.root / "housekeeper.json").read_text(encoding="utf-8"))
|
||||
task = next(item for item in state["items"] if item["key"].endswith(":missing"))
|
||||
task = next(item for item in state["items"] if item["key"].endswith(":missing:birth_date"))
|
||||
|
||||
assert task["status"] == "resolved"
|
||||
assert task["first_seen_run"] == "2026-06-21:000001"
|
||||
|
||||
Reference in New Issue
Block a user