Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: blank spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Sep 21, 2023
1 parent b2170ef commit a8cec9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ecommerce/coupons/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)

4 changes: 2 additions & 2 deletions ecommerce/extensions/voucher/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit a8cec9c

Please sign in to comment.