need_update = False if case["custom_qa_team"] != qa_teams[team]: case["custom_qa_team"] = qa_teams[team] need_update = True if case["milestone_id"] != milestones[milestone]: case["milestone_id"] = milestones[milestone] need_update = True if case["type_id"] != types[test_case_type]: case["type_id"] = types[test_case_type] need_update = True if case["custom_case_complexity"] is None: case["custom_case_complexity"] = complexity_types[complexity] need_update = True #if case["custom_case_complexity"] != complexity_types[complexity]: # case["custom_case_complexity"] = complexity_types[complexity] # need_update = True if not case["custom_test_case_steps"]: case["custom_test_case_steps"] = [{'content': '/', 'expected': '/'}] need_update = True if need_update: print "updated:", case["id"] client.update_case(case)