def test_complete_retrospective_data(): df = get_csv_as_df('follow_up', 1) data = compile_data.compile_retrospective_data(df) expected_answers = [ ('pwmt_effort', 4), ('pwmt_discomfort', 4), ('pwmt_enjoyment', 4), ('pwmt_performance', 4), ('pwmt_fatigue', 4), ('pwmt_satisfaction', 4), ('pwmt_willingtodowmt', 4), ] for label, answer in expected_answers: assert data[label] == answer
def test_complete_retrospective_data(): pid = "003" df = get_csv_as_df('follow_up', pid) data = compile_data.compile_retrospective_data(df) expected_answers = [ ('retrospective_effort', '4'), ('retrospective_discomfort', '4'), ('retrospective_performance', '4'), ('retrospective_willingtodowmt', '4'), ('retrospective_fatigue', '4'), ('retrospective_satisfaction', '4'), ('retrospective_didmybest', '4'), ('retrospective_enjoyment', '7'), ] for label, answer in expected_answers: assert data[label] == answer