fix: 修正看板归属工资测试口径

This commit is contained in:
souplearn 2026-07-25 04:57:56 +08:00
parent b4fd3388c3
commit f73c3a1166

View File

@ -60,7 +60,7 @@ def test_dashboard_rows_from_allocations_groups_by_allocation_date_desc():
defect_qty=0, defect_qty=0,
scrap_qty=0, scrap_qty=0,
changeover_count=1, changeover_count=1,
reference_wage=350, reference_wage=700,
), ),
SimpleNamespace( SimpleNamespace(
report=report, report=report,
@ -74,7 +74,7 @@ def test_dashboard_rows_from_allocations_groups_by_allocation_date_desc():
defect_qty=0, defect_qty=0,
scrap_qty=0, scrap_qty=0,
changeover_count=1, changeover_count=1,
reference_wage=300, reference_wage=600,
), ),
] ]
@ -94,7 +94,7 @@ def test_dashboard_rows_from_allocations_groups_by_allocation_date_desc():
assert current.total_defect_qty == 0 assert current.total_defect_qty == 0
assert current.total_output_qty == 300 assert current.total_output_qty == 300
assert current.changeover_count == 1 assert current.changeover_count == 1
assert current.reference_wage == 300 assert current.reference_wage == 600
assert previous.effective_minutes == 350 assert previous.effective_minutes == 350
assert previous.shift_day_minutes == 0 assert previous.shift_day_minutes == 0
@ -104,7 +104,7 @@ def test_dashboard_rows_from_allocations_groups_by_allocation_date_desc():
assert previous.total_defect_qty == 0 assert previous.total_defect_qty == 0
assert previous.total_output_qty == 350 assert previous.total_output_qty == 350
assert previous.changeover_count == 1 assert previous.changeover_count == 1
assert previous.reference_wage == 350 assert previous.reference_wage == 700
def test_export_dashboard_rows_writes_allocation_and_source_dates_with_warning_columns(): def test_export_dashboard_rows_writes_allocation_and_source_dates_with_warning_columns():