Exemple #1
0
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
Exemple #2
0
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