Ejemplo n.º 1
0
def test_getting_baseline_data_from_masters(basic_masters_dicts, project_info):
    master = JsonMaster(basic_masters_dicts, project_info)
    master.get_baseline_data()
    assert isinstance(master.bl_index, (dict, ))
    assert master.bl_index["ipdc_milestones"]["Sea of Tranquility"] == [0, 1]
    assert master.bl_index["ipdc_costs"]["Apollo 11"] == [0, 1, 0, 2]
    assert master.bl_index["ipdc_costs"]["Columbia"] == [0, 1, 0, 2]
Ejemplo n.º 2
0
def test_json_master_save(full_test_masters_dict, project_info,
                          master_json_path):
    master = JsonMaster(full_test_masters_dict, project_info)
    master.get_baseline_data()
    JsonData(master, master_json_path)