def shifts(monkeypatch): shift_helpers = ShiftHelperFactory.create_batch(2) for shift_helper in shift_helpers: monkeypatch.setattr(shift_helper.shift, "volunteer_count", 2, False) return [shift_helper.shift for shift_helper in shift_helpers]
def shifts(monkeypatch): shift_helpers = ShiftHelperFactory.create_batch(2) for shift_helper in shift_helpers: monkeypatch.setattr(shift_helper.shift, "volunteer_count", 2, False) return [shift_helper.shift for shift_helper in shift_helpers]