Example #1
0
	def test_label_list_tojson(self):
		burndown = Burndown("test burndown")
		story_xml = ET.parse("data/story_1").getroot()
		story = Story(xml_to_dictonary(story_xml))
		burndown = addState(burndown, [story])
		labels = burndown_labels(burndown) 
		self.assertEqual(labels_tojson(labels ), json.dumps(['all','epic_name']))
Example #2
0
	def test_generate_list_labels(self):
		burndown = Burndown("test burndown")
		story_xml = ET.parse("data/story_1").getroot()
		story = Story(xml_to_dictonary(story_xml))
		burndown = addState(burndown, [story])
		burndown = addState(burndown, [story])
		self.assertEqual(burndown_labels(burndown),['all','epic_name']) 
Example #3
0
def project(project_id):
    current_user = flask_helper.safe_session("user_id")

    project_list = _get_filtered_projects()
    project_found = find_project(project_list, str(project_id))

    if project_found == None:
        return redirect(url_for("overview"))

    project_id = str(project_id)
    burndown = Burndown(project_id, localdata.getBurndownStates(project_id))
    labels = burndown_labels(burndown)
    possible_states = config.states("tracker")

    return render_template("project.html", project=project_found, labels=labels, states=possible_states)
Example #4
0
def labels(project_id):
    project_id = str(project_id)
    burndown = Burndown(project_id, localdata.getBurndownStates(project_id))
    labels = burndown_labels(burndown)
    return labels_tojson(labels)