Closed XJerrY1029 closed 7 months ago
test results show is wrong,
see https://github.com/sojoai/Music-Therapy-API/actions/runs/8530755688/job/23369130357?pr=27
{'TherapistEmail': 'therapist@example.com', 'VITALSExistsInEPIC': <Sign.Positive: 1>, 'VITALSSingle': 'Example Vitals', 'BPExistsInEPIC': <Sign.Positive: 1>, 'BPSingle': '120/80', 'BPLocationExistsInEPIC': <Sign.Positive: 1>, 'BPLocationSingle': 'Arm', 'PatientPositionExistsInEPIC': <Sign.Positive: 1>, 'PatientPositionSingle': 'Sitting', 'HRExistsInEPIC': <Sign.Positive: 1>, 'HRSingle': '72', 'RRExistsInEPIC': <Sign.Positive: 1>, 'RRSingle': '18', 'O2ExistsInEPIC': <Sign.Positive: 1>, 'O2Single': '98%', 'PulseExistsInEPIC': <Sign.Positive: 1>, 'PulseSingle': '72', 'PulseOxLocationExistsInEPIC': <Sign.Positive: 1>, 'PulseOxLocationSingle': 'Finger'} {'TherapistEmail': 'therapist@example.com', 'VITALSExistsInEPIC': <Sign.Positive: 1>, 'VITALSSingle': 'Example Vitals', 'BPExistsInEPIC': <Sign.Positive: 1>, 'BPSingle': '120/80', 'BPLocationExistsInEPIC': <Sign.Positive: 1>, 'BPLocationSingle': 'Arm', 'PatientPositionExistsInEPIC': <Sign.Positive: 1>, 'PatientPositionSingle': 'Sitting', 'HRExistsInEPIC': <Sign.Positive: 1>, 'HRSingle': '72', 'RRExistsInEPIC': <Sign.Positive: 1>, 'RRSingle': '18', 'O2ExistsInEPIC': <Sign.Positive: 1>, 'O2Single': '98%', 'PulseExistsInEPIC': <Sign.Positive: 1>, 'PulseSingle': '72', 'PulseOxLocationExistsInEPIC': <Sign.Positive: 1>, 'PulseOxLocationSingle': 'Finger'} Traceback (most recent call last): File "/home/runner/work/Music-Therapy-API/Music-Therapy-API/assessment/test/tests_PHQ9Form.py", line 35, in test_calculate_total_score self.assertEqual(total_score, expected_score) AssertionError: 15 != 18
could you double check if it is a code issue or test issue
I CAN RUN THE CODE ON MY PYCHARM.
Ran 19 tests in 0.049s
OK
test forms