diff --git a/eox_nelp/api_clients/pearson_rti.py b/eox_nelp/api_clients/pearson_rti.py index 3328bd5b..b3679acc 100644 --- a/eox_nelp/api_clients/pearson_rti.py +++ b/eox_nelp/api_clients/pearson_rti.py @@ -87,6 +87,7 @@ def import_candidate_demographics(self, payload): "message": xml_response.find("message").text, "candidate_id": xml_response.find("cdd:cddResponse").attrs.get("candidateID"), "client_candidate_id": xml_response.find("cdd:cddResponse").attrs.get("clientCandidateID"), + "import_type": "cdd", } LOGGER.error( @@ -131,6 +132,7 @@ def import_exam_authorization(self, payload): "status": status.text.lower(), "message": xml_response.find("message").text if xml_response.find("message") else "", "client_candidate_id": xml_response.find("clientCandidateID").text, + "import_type": "ead", } LOGGER.error( diff --git a/eox_nelp/api_clients/tests/test_pearson_rti.py b/eox_nelp/api_clients/tests/test_pearson_rti.py index 9731fc3c..52cf2468 100644 --- a/eox_nelp/api_clients/tests/test_pearson_rti.py +++ b/eox_nelp/api_clients/tests/test_pearson_rti.py @@ -107,6 +107,7 @@ def test_accepted_status_cdd(self, post_mock): "message": "ok", "candidate_id": "12345", "client_candidate_id": "CC1234", + "import_type": "cdd", } post_mock.return_value = """