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

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Noyan Aziz authored and Muhammad Noyan Aziz committed Jul 8, 2024
1 parent 0890517 commit 7c6348b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecommerce/coupons/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ def test_invalid_voucher_code(self):
expected_message = 'No voucher found with code {code}'.format(code=code)
url = format_url(base=self.redeem_url, params={'code': code, 'sku': self.stock_record.partner_sku})
response = self.client.get(url, follow=True)

messages = []
messages += response.context['messages']

self.assertEqual(messages[0].tags, 'error')
self.assertEqual(messages[0].message, expected_message)
self.assert_redemption_page_redirects(self.get_coupon_redeem_success_expected_redirect_url())
Expand Down

0 comments on commit 7c6348b

Please sign in to comment.