None is not a valid value for posting.
This commit is contained in:
Awais Qureshi
2020-04-04 20:38:16 +05:00
parent ade9135c7f
commit 9fc3dcb5d6

View File

@@ -1136,7 +1136,7 @@ class CheckoutTestMixin(object):
Ensures that checkout functions were invoked as
expected during execution of the create_order endpoint.
"""
post_params.setdefault('processor', None)
post_params.setdefault('processor', '')
response = self.client.post(reverse('verify_student_create_order'), post_params)
self.assertEqual(response.status_code, expected_status_code)
if expected_status_code == 200:
@@ -1394,7 +1394,7 @@ class TestCreateOrderView(ModuleStoreTestCase):
data = {
'contribution': contribution,
'course_id': course_id,
'processor': None,
'processor': '',
}
response = self.client.post(url, data)