def test_balance_without_interval(): entries = ['2018-04-12T08:00:00', '2018-04-12T09:00:00'] timesheet = TimeSheet(entries) employee = Employee(timesheet, default_workload, default_processor) assert employee.balance_in_minutes('2018-04-12') == -480
def test_balance_with_debit(): entries = ['2018-04-12T08:00:00','2018-04-12T12:00:00','2018-04-12T13:00:00','2018-04-12T16:59:00'] timesheet = TimeSheet(entries) employee = Employee(timesheet, default_workload, default_processor) assert employee.balance_in_minutes('2018-04-12') == -61