Commit fbbf590c by Albert St. Aubin

New test logging

parent 2d188348
...@@ -499,12 +499,15 @@ class EcommerceApiDataLoader(AbstractDataLoader): ...@@ -499,12 +499,15 @@ class EcommerceApiDataLoader(AbstractDataLoader):
""" """
attributes = {attribute['name']: attribute['value'] for attribute in body['attribute_values']} attributes = {attribute['name']: attribute['value'] for attribute in body['attribute_values']}
course_uuid = attributes.get('UUID') course_uuid = attributes.get('UUID')
logger.info('HELIO_TEST: Started update for Course {uuid}...'.format(uuid=course_uuid)) # pragma: no cover
detailed_logs = course_uuid == 'dd4f6e5b-8eba-4d4c-9b07-285c8a016b29' detailed_logs = course_uuid == 'dd4f6e5b-8eba-4d4c-9b07-285c8a016b29'
title = body['title'] title = body['title']
stockrecords = body['stockrecords'] stockrecords = body['stockrecords']
if detailed_logs: if detailed_logs:
logger.info('HELIO_TEST: Started update for Course {uuid}...'.format(uuid=course_uuid)) # pragma: no cover
logger.info('HELIO_TEST: Course UUID Attributes {attr}'.format(attr=attributes)) # pragma: no cover logger.info('HELIO_TEST: Course UUID Attributes {attr}'.format(attr=attributes)) # pragma: no cover
if not self.validate_stockrecord(stockrecords, title, 'entitlement'): if not self.validate_stockrecord(stockrecords, title, 'entitlement'):
......
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