Changeset - ae8f39381f4a
[Not reviewed]
0 6 0
Christopher Neugebauer - 8 years ago 2016-04-08 09:49:18
chrisjrn@gmail.com
Flake8 fixes
6 files changed with 4 insertions and 8 deletions:
0 comments (0 inline, 0 general)
registrasion/controllers/invoice.py
Show inline comments
...
 
@@ -143,5 +143,4 @@ class InvoiceController(object):
 
        return False
 

	
 

	
 
    def _refresh(self):
 
        ''' Refreshes the underlying invoice and cart objects. '''
registrasion/tests/controller_helpers.py
Show inline comments
...
 
@@ -4,5 +4,4 @@ from registrasion import models as rego
 

	
 
from django.core.exceptions import ObjectDoesNotExist
 
from django.core.exceptions import ValidationError
 

	
 

	
...
 
@@ -42,5 +41,5 @@ class TestingInvoiceController(InvoiceController):
 

	
 
        ''' Adds a payment '''
 
        payment = rego.ManualPayment.objects.create(
 
        rego.ManualPayment.objects.create(
 
            invoice=self.invoice,
 
            reference=reference,
registrasion/tests/test_discount.py
Show inline comments
...
 
@@ -6,5 +6,4 @@ from registrasion import models as rego
 
from registrasion.controllers import discount
 
from controller_helpers import TestingCartController
 
from controller_helpers import TestingInvoiceController
 

	
 
from test_cart import RegistrationCartTestCase
registrasion/tests/test_invoice.py
Show inline comments
...
 
@@ -198,5 +198,5 @@ class InvoiceTestCase(RegistrationCartTestCase):
 
        current_cart = TestingCartController.for_user(self.USER_1)
 
        with self.assertRaises(ValidationError):
 
            invoice_1 = TestingInvoiceController.for_cart(current_cart.cart)
 
            TestingInvoiceController.for_cart(current_cart.cart)
 

	
 
    def test_cannot_pay_implicitly_void_invoice(self):
...
 
@@ -211,6 +211,4 @@ class InvoiceTestCase(RegistrationCartTestCase):
 
            invoice.validate_allowed_to_pay()
 

	
 

	
 

	
 
    # TODO: test partially paid invoice cannot be void until payments
 
    # are refunded
registrasion/util.py
Show inline comments
...
 
@@ -3,4 +3,5 @@ import string
 
from django.utils.crypto import get_random_string
 

	
 

	
 
def generate_access_code():
 
    ''' Generates an access code for users' payments as well as their
registrasion/views.py
Show inline comments
...
 
@@ -485,5 +485,5 @@ def invoice(request, invoice_id, access_code=None):
 
            user=request.user,
 
            access_code=access_code,
 
        ):
 
            ):
 
        raise Http404()
 

	
0 comments (0 inline, 0 general)