Fix change enrollment command for credit.

Get provider id from ecommerce upon changing enrollment to credit
instead of setting course_key org.

LEARNER-6643
This commit is contained in:
Waheed Ahmed
2019-03-08 17:05:25 +05:00
parent 8f6cde89cd
commit 458e8482ea
5 changed files with 50 additions and 38 deletions

View File

@@ -233,7 +233,7 @@ class CreditCourseDashboardTest(ModuleStoreTestCase):
self._make_eligible()
# The user should have the option to purchase credit
with patch('student.views.dashboard.get_credit_provider_display_names') as mock_method:
with patch('student.views.dashboard.get_credit_provider_attribute_values') as mock_method:
mock_method.return_value = providers_list
response = self._load_dashboard()