示例#1
0
def test_calculating_wlc_changes(master):
    costs = CostData(
        master, group=[master.current_projects], baseline=["all"]
    )
    costs.calculate_wlc_change()
    assert costs.wlc_change == {
        "Apollo 13": {"baseline one": 0, "last quarter": 0},
        "Columbia": {"baseline one": -43, "last quarter": -43},
        "Falcon 9": {"baseline one": 5, "last quarter": 5},
        "Mars": {"baseline one": 0},
        "Sea of Tranquility": {"baseline one": 54, "last quarter": 54},
    }
示例#2
0
def test_project_report_meta_data(word_doc, master):
    project = [F9]
    cost = CostData(master, quarter=["standard"], group=project)
    milestones = MilestoneData(master, quarter=["standard"], group=project)
    benefits = BenefitsData(master, quarter=["standard"], group=project)
    project_report_meta_data(word_doc, cost, milestones, benefits, *project)
    word_doc.save("resources/summary_temp_altered.docx")
示例#3
0
def test_project_cost_profile_chart(master):
    costs = CostData(master, group=TEST_GROUP, baseline=["standard"])
    costs.get_cost_profile()
    cost_profile_graph(costs, master, chart=False)