Esempio n. 1
0
def project_projections(project):

	velocity_calculator = velocity_calculator_maker(target_points = project.remaining_scope, capacity = 2)

	predictions = (("Yesterday's Weather", project.velocity.yesterday, velocity_calculator(velocity = project.velocity.yesterday)),
		('Model', project.velocity.model, velocity_calculator(velocity = project.velocity.model)),
		('Low', project.velocity.low, velocity_calculator(velocity = project.velocity.low)),
		('Target', project.velocity.high, velocity_calculator(velocity = project.velocity.high) ))
	
	for description, velocity, weeks in predictions:
		print "%s Velocity (%d), end date: %s" % (description, velocity, format_date(end_date(weeks)))
Esempio n. 2
0
def test_end_date_calculation():
	an_end_date = end_date(start_date = eighteenth_november, weeks = 1, holiday_weeks = 0)
	assert twenty_fifth_november == an_end_date