diff --git a/ecommerce/coupons/tests/test_utils.py b/ecommerce/coupons/tests/test_utils.py index 4d20237ee90..8aa336e44c1 100644 --- a/ecommerce/coupons/tests/test_utils.py +++ b/ecommerce/coupons/tests/test_utils.py @@ -117,7 +117,7 @@ def test_fetch_course_catalog(self): 'end_datetime': datetime(2012, 11, 15, 1, 40, tzinfo=UTC), 'timezone_now': datetime(2012, 11, 15, 1, 35, tzinfo=UTC), 'coupon_available': True, - }, + }, ) @ddt.unpack def test_is_coupon_available(self, start_datetime, end_datetime, timezone_now, coupon_available): @@ -127,4 +127,4 @@ def test_is_coupon_available(self, start_datetime, end_datetime, timezone_now, c coupon = self.create_coupon(start_datetime=start_datetime, end_datetime=end_datetime) with patch.object(timezone, 'now', return_value=timezone_now): self.assertEqual(is_coupon_available(coupon), coupon_available) - + diff --git a/ecommerce/extensions/voucher/utils.py b/ecommerce/extensions/voucher/utils.py index 986dbb5c8da..a4c9788344c 100644 --- a/ecommerce/extensions/voucher/utils.py +++ b/ecommerce/extensions/voucher/utils.py @@ -579,14 +579,14 @@ def create_vouchers_and_attach_offers( vouchers = [] voucher_offers = [] enterprise_voucher_offers = [] - + for i in range(quantity): voucher = create_new_voucher( end_datetime=end_datetime, start_datetime=start_datetime, voucher_type=voucher_type, code=code, - name=name+str(i) + name=name + str(i) ) voucher_offers.append( VoucherOffer(voucher=voucher, conditionaloffer=offers[i] if len(offers) > 1 else offers[0])