From de37734132347f787760268ad3f01a61d2d498ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrey=20Ca=C3=B1on?= <36200299+andrey-canon@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:46:56 -0500 Subject: [PATCH] fix: set right endpoint (#212) --- eox_nelp/api_clients/pearson_engine.py | 2 +- eox_nelp/api_clients/tests/test_pearson_engine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eox_nelp/api_clients/pearson_engine.py b/eox_nelp/api_clients/pearson_engine.py index af130ac6..c2cdf214 100644 --- a/eox_nelp/api_clients/pearson_engine.py +++ b/eox_nelp/api_clients/pearson_engine.py @@ -132,7 +132,7 @@ def real_time_import(self, user, exam_id, **kwargs): Returns: dict: The response from Pearson Engine API. """ - path = "rti/api/v1/exam-authorization/" + path = "rti/api/v1/real-time-import/" data = { "user_data": self._get_user_data(user), "exam_data": self._get_exam_data(exam_id), diff --git a/eox_nelp/api_clients/tests/test_pearson_engine.py b/eox_nelp/api_clients/tests/test_pearson_engine.py index c7495124..06c91cc5 100644 --- a/eox_nelp/api_clients/tests/test_pearson_engine.py +++ b/eox_nelp/api_clients/tests/test_pearson_engine.py @@ -114,7 +114,7 @@ def test_real_time_import(self, auth_mock, post_mock): self.assertDictEqual(response, expected_value) # pylint: disable=protected-access - post_mock.assert_called_with("rti/api/v1/exam-authorization/", { + post_mock.assert_called_with("rti/api/v1/real-time-import/", { "user_data": api_client._get_user_data(user), "exam_data": api_client._get_exam_data(exam_id), "platform_data": api_client._get_platform_data(),