Skip to content

Commit

Permalink
fix: match argument to CC
Browse files Browse the repository at this point in the history
  • Loading branch information
JadeyOlivier committed Jul 10, 2024
1 parent 442a1a5 commit 0420088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tubular/edx_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,6 @@ def retire_learner(self, learner):
Performs the learner retirement step for Commerce-Coordinator.
Passes the learner's LMS User Id instead of username.
"""
data = {'lms_user_id': learner['user']['id']}
data = {'edx_lms_user_id': learner['user']['id']}
api_url = self.get_api_url('lms/user_retirement')
return self._request('POST', api_url, json=data)
2 changes: 1 addition & 1 deletion tubular/tests/test_edx_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def setUp(self):
@patch.object(edx_api.CommerceCoordinatorApi, 'retire_learner')
def test_retire_learner(self, mock_method):
json_data = {
'lms_user_id': get_fake_user_retirement()['user']['id']
'edx_lms_user_id': get_fake_user_retirement()['user']['id']
}
responses.add(
POST,
Expand Down

0 comments on commit 0420088

Please sign in to comment.