Commits

Kai Diefenbach committed 1762454

Fixed coding specification

Comments (0)

Files changed (3)

lfs/cart/tests.py

-# coding=utf8
+# coding: utf-8
 
 # django imports
 from django.contrib.auth.models import User

lfs/catalog/tests.py

-# coding=utf8
+# coding: utf-8
 
 # django imports
 from django.contrib.sessions.backends.file import SessionStore
         self.assertEqual(len(Product.objects.all()), 5)
 
         product = Product.objects.get(slug="product-1")
-        
+
         variant_data = {  'slug': 'variant-slug',
                           'name': 'variant',
                           'price': 10.00,
                           }
-        
+
         # set up a user with permission to access the manage interface
         self.user, created = User.objects.get_or_create(username='manager', is_superuser=True)
         self.password = 'pass'
         self.user.set_password(self.password)
         self.user.save()
-        
+
         # login the manager account so we can access the add variant function
         self.client.login(username='manager', password='pass')
-        
+
         response = self.client.post(reverse('lfs_add_variants', args=(product.id,)), variant_data)
         # following code in try loop will only be relevant if there are errors in the form
         try:
                     self.assertEqual(len(variant_form.errors), 0)
         except KeyError, e:
             pass
-        
+
         self.assertEqual(response.status_code, 200)
         self.assertEqual(len(Product.objects.all()), 6)
         variant = Product.objects.get(slug="product-1-variant-slug")

lfs/core/settings.py

-# coding=utf8
+# coding: utf-8
+
 from django.utils.translation import gettext_lazy as _
 from django.conf import settings