Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Iron some Python 3 wrinkles
Patryk Zawadzki0dd055a249d7
diff --git a/shop/cart/__init__.py b/shop/cart/__init__.pyindex 0c9a6e8694..414dc6b58c 100755--- a/shop/cart/__init__.py+++ b/shop/cart/__init__.py@@ -101,7 +101,7 @@ class Cart(cart.Cart):billing_address = Nonedef __unicode__(self):- return pgettext(u'Shopping cart', u'Your cart (%(cart_count)s)') % {+ return pgettext('Shopping cart', 'Your cart (%(cart_count)s)') % {'cart_count': self.count()}diff --git a/shop/registration/tests.py b/shop/registration/tests.pyindex ed3d58b15d..bea13718c1 100644--- a/shop/registration/tests.py+++ b/shop/registration/tests.py@@ -46,7 +46,7 @@ class LoginUrlsTestCase(TestCase):func, _args, kwargs = resolve(callback_url.path())self.assertEquals(func, oauth_callback)self.assertEquals(kwargs['service'], GOOGLE)- self.assertIn(params['scope'][0], GoogleClient.scope)+ self.assertTrue(params['scope'][0] in GoogleClient.scope)self.assertEqual(params['client_id'][0], GoogleClient.client_id)