def test_get_start_time_duration_sunday(): """Checks get_start_time_duration returns proper Sunday values.""" start_time, duration = assemble_schedule.get_start_time_duration( False, 6, USER_SHIFT_CODES[0] ) assert start_time == USER_SHIFT_CODES[0]['sunday_start'] assert duration == USER_SHIFT_CODES[0]['sunday_duration']
def test_get_start_time_duration_blank(): """Checks get_start_time_duration returns proper blank.""" start_time, duration = assemble_schedule.get_start_time_duration( False, None, USER_SHIFT_CODES[0] ) assert start_time is None assert duration is None
def test_get_start_time_duration_stat(): """Checks get_start_time_duration returns proper stat values.""" start_time, duration = assemble_schedule.get_start_time_duration( True, 1, USER_SHIFT_CODES[0] ) assert start_time == USER_SHIFT_CODES[0]['stat_start'] assert duration == USER_SHIFT_CODES[0]['stat_duration']