Revision fc7747df7177f2f610c55c9709a81e7b0b618806 authored by Jochen Kupperschmidt on 03 January 2026, 00:21:02 UTC, committed by Jochen Kupperschmidt on 03 January 2026, 00:21:02 UTC
1 parent 2e587a4
test_aggregate_seat_utilizations.py
"""
:Copyright: 2014-2025 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from byceps.services.seating import seat_service
from byceps.services.seating.models import SeatUtilization
def test_aggregate_seat_utilizations():
sus = [
SeatUtilization(occupied=23, total=60),
SeatUtilization(occupied=0, total=50),
SeatUtilization(occupied=42, total=80),
]
expected = SeatUtilization(occupied=65, total=190)
assert seat_service.aggregate_seat_utilizations(sus) == expected

Computing file changes ...