mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 11:14:52 +02:00
fix: tolerate invalid member dates in views
This commit is contained in:
@@ -36,6 +36,10 @@ def test_date_display_uses_system_pattern(monkeypatch) -> None:
|
||||
assert format_date_for_display("2024-02-29") == "2024-02-29"
|
||||
|
||||
|
||||
def test_invalid_date_remains_visible_for_correction() -> None:
|
||||
assert format_date_for_display("31/12/2000") == "31/12/2000"
|
||||
|
||||
|
||||
def test_birth_date_checks_future_and_plausibility() -> None:
|
||||
today = date(2026, 6, 21)
|
||||
assert validate_birth_date("2000-06-22", today=today) == date(2000, 6, 22)
|
||||
|
||||
Reference in New Issue
Block a user