Commit fcb975dd by Clinton Blackburn Committed by Clinton Blackburn

Corrected certificate_type value when publishing seats to the E-Commerce Service

The correct value for audit seats is an empty string, not None/null.

LEARNER-2876
parent f11389ca
......@@ -24,7 +24,7 @@ class TestSerializeSeatForEcommerceApi:
'attribute_values': [
{
'name': 'certificate_type',
'value': None,
'value': '',
},
{
'name': 'id_verification_required',
......
......@@ -10,7 +10,7 @@ def serialize_seat_for_ecommerce_api(seat):
'attribute_values': [
{
'name': 'certificate_type',
'value': None if seat.type == Seat.AUDIT else seat.type,
'value': '' if seat.type == Seat.AUDIT else seat.type,
},
{
'name': 'id_verification_required',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment