Changeset - 4cdbdb71ceee
[Not reviewed]
0 6 0
Christopher Neugebauer - 8 years ago 2016-04-25 07:37:33
chrisjrn@gmail.com
flake8 fixes
6 files changed with 20 insertions and 16 deletions:
0 comments (0 inline, 0 general)
registrasion/controllers/discount.py
Show inline comments
...
 
@@ -73,3 +73,3 @@ def available_discounts(user, categories, products):
 
            cart__user=user,
 
            cart__status=commerce.Cart.STATUS_PAID, # Only past carts count
 
            cart__status=commerce.Cart.STATUS_PAID,  # Only past carts count
 
            discount=real_discount,
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,
 
                             reset_sequences=False,
 
                             allow_cascade=False,
 
                             inhibit_post_migrate=False)
 
            call_command(
 
                'flush',
 
                verbosity=0,
 
                interactive=False,
 
                reset_sequences=False,
 
                allow_cascade=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/tests/test_invoice.py
Show inline comments
...
 
@@ -486,3 +486,3 @@ class InvoiceTestCase(RegistrationCartTestCase):
 
        notes = commerce.CreditNote.objects.filter(invoice=invoice.invoice)
 
        notes = sorted(notes, key = lambda note: note.value)
 
        notes = sorted(notes, key=lambda note: note.value)
 

	
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
...
 
@@ -44,5 +43,5 @@ class GuidedRegistrationSection(_GuidedRegistrationSection):
 
    Attributes:
 
        title (str): The title of the section.
 
       title (str): The title of the section.
 

	
 
        discounts ([registrasion.contollers.discount.DiscountAndQuantity, ...]):
 
       discounts ([registrasion.contollers.discount.DiscountAndQuantity, ...]):
 
            A list of discount objects that are available in the section. You
...
 
@@ -52,5 +51,5 @@ class GuidedRegistrationSection(_GuidedRegistrationSection):
 

	
 
        description (str): A description of the section.
 
       description (str): A description of the section.
 

	
 
        form (forms.Form): A form to display.
 
       form (forms.Form): A form to display.
 
    '''
...
 
@@ -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)