Ejemplo n.º 1
0
def date_projections(project):
	significant_dates = (('March', date(day = 1, month = 3, year = 2010)),)

	for label, finish in significant_dates:
		print "%s points for YWV %d" % (label, points_delivered_until(finish, velocity = project.velocity.yesterday, capacity = 2))

	target_dates = (('24th February', date(day = 24, month = 2, year = 2010)), ('24th March', date(day = 24, month = 3, year = 2010)))

	for label, target_date in target_dates:
		print "To meet a date of %s a velocity of %d is required" % (label, velocity_required_for(end_date = target_date, start_date = date.today(), target_points = project.remaining_scope, capacity = 2))
Ejemplo n.º 2
0
def test_velocity_required_to_deliver():
	velocity = velocity_required_for(start_date = fourth_january, end_date = eighteenth_january, capacity = 1, target_points = 20, holiday_weeks = 0)
	assert velocity == 10, "Expected 10, got %d" % (velocity, )