From 7c6348b9cb267a04fb495463b5565a63c6818282 Mon Sep 17 00:00:00 2001 From: Muhammad Noyan Aziz Date: Tue, 9 Jul 2024 02:29:45 +0500 Subject: [PATCH] fix: linting --- ecommerce/coupons/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecommerce/coupons/tests/test_views.py b/ecommerce/coupons/tests/test_views.py index 9ee616066d6..a071968a36b 100644 --- a/ecommerce/coupons/tests/test_views.py +++ b/ecommerce/coupons/tests/test_views.py @@ -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())