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

Commit

Permalink
fix: fixed issue in code
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Sep 27, 2023
1 parent 06b0585 commit 82247f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ecommerce/extensions/api/v2/tests/views/test_vouchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_list(self):

actual_codes = [datum['code'] for datum in response.data['results']]
expected_codes = [voucher.code for voucher in vouchers]
self.assertListEqual(actual_codes, expected_codes)
self.assertEqual(actual_codes, expected_codes[::-1])

def test_list_with_code_filter(self):
""" Verify the endpoint list all vouchers, filtered by the specified code. """
Expand Down
4 changes: 2 additions & 2 deletions ecommerce/extensions/voucher/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ def test_create_voucher_with_long_name(self):
})
trimmed = (
'This Is A Really Really Really Really Really Really Long '
'Voucher Name That Needs To Be Trimmed To Fit Into The Name Column Of Th'
'Voucher Name That Needs To Be Trimmed To Fit Into The '
)
vouchers = create_vouchers(**self.data)
voucher = vouchers[0]
self.assertEqual(voucher.name, trimmed)
self.assertEqual(voucher.name, trimmed + voucher.code)

@ddt.data(
{'end_datetime': ''},
Expand Down

0 comments on commit 82247f0

Please sign in to comment.