@@ -148,8 +148,8 @@ class TestPopulateExecutiveEducationDataCsv(CSVLoaderMixin, TestCase):
148
148
149
149
SUCCESS_API_RESPONSE_CUSTOM_AND_FUTURE_VARIANTS = copy .deepcopy (SUCCESS_API_RESPONSE )
150
150
SUCCESS_API_RESPONSE_CUSTOM_AND_FUTURE_VARIANTS ['products' ][0 ].update ({
151
- 'custom_presentations ' : [{** copy .deepcopy (variant_1 ), 'websiteVisibility' : 'private' , 'status' : 'active' }],
152
- 'future_variants ' : [
151
+ 'customPresentations ' : [{** copy .deepcopy (variant_1 ), 'websiteVisibility' : 'private' , 'status' : 'active' }],
152
+ 'futureVariants ' : [
153
153
{
154
154
** copy .deepcopy (variant_2 ), 'websiteVisibility' : 'public' , 'status' : 'scheduled' ,
155
155
'startDate' : '2026-03-20' , 'endDate' : '2026-04-28' , 'finalRegCloseDate' : '2026-03-26'
@@ -264,10 +264,10 @@ def test_populate_executive_education_data_csv_with_new_variants_structure_chang
264
264
)
265
265
266
266
simple_variant = self .SUCCESS_API_RESPONSE_CUSTOM_AND_FUTURE_VARIANTS ["products" ][0 ]["variant" ]
267
- future_variant = self .SUCCESS_API_RESPONSE_CUSTOM_AND_FUTURE_VARIANTS ["products" ][0 ]["future_variants " ][0 ]
267
+ future_variant = self .SUCCESS_API_RESPONSE_CUSTOM_AND_FUTURE_VARIANTS ["products" ][0 ]["futureVariants " ][0 ]
268
268
custom_variant = self .SUCCESS_API_RESPONSE_CUSTOM_AND_FUTURE_VARIANTS [
269
269
"products"
270
- ][0 ]["custom_presentations " ][0 ]
270
+ ][0 ]["customPresentations " ][0 ]
271
271
272
272
with open (output_csv .name , "r" ) as csv_file :
273
273
reader = csv .DictReader (csv_file )
@@ -284,13 +284,15 @@ def test_populate_executive_education_data_csv_with_new_variants_structure_chang
284
284
assert data_row ["Start Date" ] == future_variant ["startDate" ]
285
285
assert data_row ["End Date" ] == future_variant ["endDate" ]
286
286
assert data_row ["Reg Close Date" ] == future_variant ["finalRegCloseDate" ]
287
+ assert data_row ["Publish Date" ] == future_variant ["startDate" ]
287
288
assert data_row ["Restriction Type" ] == "None"
288
289
289
290
data_row = next (reader )
290
291
assert data_row ["Variant Id" ] == custom_variant ["id" ]
291
292
assert data_row ["Start Date" ] == custom_variant ["startDate" ]
292
293
assert data_row ["End Date" ] == custom_variant ["endDate" ]
293
294
assert data_row ["Reg Close Date" ] == custom_variant ["finalRegCloseDate" ]
295
+ assert data_row ["Publish Date" ] == str (date .today ().isoformat ())
294
296
assert data_row ["Restriction Type" ] == "custom-b2b-enterprise"
295
297
296
298
@mock .patch ('course_discovery.apps.course_metadata.utils.GetSmarterEnterpriseApiClient' )
0 commit comments