Changeset - ac10ea4ee895
[Not reviewed]
1 6 1
Christopher Neugebauer - 8 years ago 2016-04-07 07:16:04
chrisjrn@gmail.com
s/cart_controller_helper/controller_helpers/
7 files changed with 14 insertions and 7 deletions:
0 comments (0 inline, 0 general)
registrasion/tests/controller_helpers.py
Show inline comments
 
file renamed from registrasion/tests/cart_controller_helper.py to registrasion/tests/controller_helpers.py
registrasion/tests/test_cart.py
Show inline comments
...
 
@@ -10,7 +10,7 @@ from django.test import TestCase
 
from registrasion import models as rego
 
from registrasion.controllers.product import ProductController
 

	
 
from cart_controller_helper import TestingCartController
 
from controller_helpers import TestingCartController
 
from patch_datetime import SetTimeMixin
 

	
 
UTC = pytz.timezone('UTC')
registrasion/tests/test_ceilings.py
Show inline comments
...
 
@@ -3,7 +3,7 @@ import pytz
 

	
 
from django.core.exceptions import ValidationError
 

	
 
from cart_controller_helper import TestingCartController
 
from controller_helpers import TestingCartController
 
from test_cart import RegistrationCartTestCase
 

	
 
from registrasion import models as rego
registrasion/tests/test_enabling_condition.py
Show inline comments
...
 
@@ -4,7 +4,7 @@ from django.core.exceptions import ValidationError
 

	
 
from registrasion import models as rego
 
from registrasion.controllers.category import CategoryController
 
from cart_controller_helper import TestingCartController
 
from controller_helpers import TestingCartController
 
from registrasion.controllers.product import ProductController
 

	
 
from test_cart import RegistrationCartTestCase
registrasion/tests/test_invoice.py
Show inline comments
...
 
@@ -5,7 +5,7 @@ from decimal import Decimal
 
from django.core.exceptions import ValidationError
 

	
 
from registrasion import models as rego
 
from cart_controller_helper import TestingCartController
 
from controller_helpers import TestingCartController
 
from registrasion.controllers.invoice import InvoiceController
 

	
 
from test_cart import RegistrationCartTestCase
...
 
@@ -197,4 +197,11 @@ class InvoiceTestCase(RegistrationCartTestCase):
 
    def test_cannot_generate_blank_invoice(self):
 
        current_cart = TestingCartController.for_user(self.USER_1)
 
        with self.assertRaises(ValidationError):
 
            InvoiceController.for_cart(current_cart.cart)
 
            invoice_1 = InvoiceController.for_cart(current_cart.cart)
 

	
 
    # TODO: test partially paid invoice cannot be void until payments
 
    # are refunded
 

	
 
    # TODO: test overpaid invoice results in credit note
 

	
 
    # TODO: test credit note generation more generally 
registrasion/tests/test_refund.py
Show inline comments
 
import pytz
 

	
 
from cart_controller_helper import TestingCartController
 
from controller_helpers import TestingCartController
 
from registrasion.controllers.invoice import InvoiceController
 

	
 
from test_cart import RegistrationCartTestCase
registrasion/tests/test_voucher.py
Show inline comments
...
 
@@ -6,7 +6,7 @@ from django.core.exceptions import ValidationError
 
from django.db import IntegrityError
 

	
 
from registrasion import models as rego
 
from cart_controller_helper import TestingCartController
 
from controller_helpers import TestingCartController
 
from registrasion.controllers.invoice import InvoiceController
 

	
 
from test_cart import RegistrationCartTestCase
0 comments (0 inline, 0 general)