Ist-Stand mit 2 Nachkommastellen formatieren, Dropdown-Anzeige via NeedAppearances korrigieren
This commit is contained in:
1 parent
6a06a5f2a9
commit
a1f229a502
3 files changed
+13
-9
No files matched your search
@@ -95,11 +95,11 @@ class TestPresentDay:
|
||||
|
||||
def test_ist_field_whole_hours(self, cfg):
|
||||
fields = build_field_dict(_make_attendance(_present(3, 6.0)), cfg, date(2026, 2, 1))
|
||||
assert fields["ist.0"] == "6"
|
||||
assert fields["ist.0"] == "6,00"
|
||||
|
||||
def test_ist_field_decimal_hours(self, cfg):
|
||||
fields = build_field_dict(_make_attendance(_present(3, 6.5)), cfg, date(2026, 2, 1))
|
||||
assert fields["ist.0"] == "6,5"
|
||||
assert fields["ist.0"] == "6,50"
|
||||
|
||||
def test_plan_always_6(self, cfg):
|
||||
fields = build_field_dict(_make_attendance(_present(3, 3.0)), cfg, date(2026, 2, 1))
|
||||
@@ -164,11 +164,11 @@ class TestMultiRow:
|
||||
class TestHoursFormatting:
|
||||
def test_whole_number_no_decimal(self):
|
||||
entry = AttendanceDate(date=date(2026, 2, 1), status="X", hours=6.0)
|
||||
assert entry.hours_german() == "6"
|
||||
assert entry.hours_german() == "6,00"
|
||||
|
||||
def test_decimal_comma_separator(self):
|
||||
entry = AttendanceDate(date=date(2026, 2, 1), status="X", hours=6.5)
|
||||
assert entry.hours_german() == "6,5"
|
||||
assert entry.hours_german() == "6,50"
|
||||
|
||||
def test_none_returns_empty(self):
|
||||
entry = AttendanceDate(date=date(2026, 2, 1), status="K", hours=None)
|
||||
|
||||
Reference in new issue
Block a user