Changeset - 4cdbdb71ceee
[Not reviewed]
0 6 0
Christopher Neugebauer - 8 years ago 2016-04-25 07:37:33
chrisjrn@gmail.com
flake8 fixes
4 files changed with 12 insertions and 8 deletions:
0 comments (0 inline, 0 general)
registrasion/templatetags/registrasion_tags.py
Show inline comments
...
 
@@ -12,2 +12,3 @@ _ProductAndQuantity = namedtuple("ProductAndQuantity", ["product", "quantity"])
 

	
 

	
 
class ProductAndQuantity(_ProductAndQuantity):
registrasion/tests/test_cart.py
Show inline comments
...
 
@@ -28,8 +28,12 @@ class RegistrationCartTestCase(SetTimeMixin, TestCase):
 
    def tearDown(self):
 
        if False:
 
        if True:
 
            # If you're seeing segfaults in tests, enable this.
 
            call_command('flush', verbosity=0, interactive=False,
 
            call_command(
 
                'flush',
 
                verbosity=0,
 
                interactive=False,
 
                reset_sequences=False,
 
                allow_cascade=False,
 
                             inhibit_post_migrate=False)
 
                inhibit_post_migrate=False
 
            )
 

	
...
 
@@ -53,3 +57,3 @@ class RegistrationCartTestCase(SetTimeMixin, TestCase):
 
        attendee1 = people.Attendee.get_instance(cls.USER_1)
 
        profile1 = people.AttendeeProfileBase.objects.create(
 
        people.AttendeeProfileBase.objects.create(
 
            attendee=attendee1,
...
 
@@ -57,3 +61,3 @@ class RegistrationCartTestCase(SetTimeMixin, TestCase):
 
        attendee2 = people.Attendee.get_instance(cls.USER_2)
 
        profile2 = people.AttendeeProfileBase.objects.create(
 
        people.AttendeeProfileBase.objects.create(
 
            attendee=attendee2,
registrasion/views.py
Show inline comments
...
 
@@ -23,3 +23,2 @@ from django.core.exceptions import ValidationError
 
from django.http import Http404
 
from django.shortcuts import get_object_or_404
 
from django.shortcuts import redirect
...
 
@@ -571,3 +570,2 @@ def invoice_access(request, access_code):
 

	
 

	
 
    if not invoices:
...
 
@@ -637,2 +635,3 @@ def _staff_only(user):
 

	
 

	
 
@user_passes_test(_staff_only)
setup.cfg
Show inline comments
 
[flake8]
 
exclude = registrasion/migrations/*, build/*
 
exclude = registrasion/migrations/*, build/*, docs/*
0 comments (0 inline, 0 general)