Update tests for current UI and rule behavior

This commit is contained in:
Marcel Peterkau
2026-06-27 11:19:31 +02:00
parent 3876f8c5ab
commit 532dc5c638
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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"