s/cart_controller_helper/controller_helpers/

This commit is contained in:
Christopher Neugebauer 2016-04-07 10:19:18 +10:00
parent 8e95bb7469
commit ac10ea4ee8
7 changed files with 14 additions and 7 deletions

View file

@ -10,7 +10,7 @@ from django.test import TestCase
from registrasion import models as rego from registrasion import models as rego
from registrasion.controllers.product import ProductController from registrasion.controllers.product import ProductController
from cart_controller_helper import TestingCartController from controller_helpers import TestingCartController
from patch_datetime import SetTimeMixin from patch_datetime import SetTimeMixin
UTC = pytz.timezone('UTC') UTC = pytz.timezone('UTC')

View file

@ -3,7 +3,7 @@ import pytz
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from cart_controller_helper import TestingCartController from controller_helpers import TestingCartController
from test_cart import RegistrationCartTestCase from test_cart import RegistrationCartTestCase
from registrasion import models as rego from registrasion import models as rego

View file

@ -4,7 +4,7 @@ from django.core.exceptions import ValidationError
from registrasion import models as rego from registrasion import models as rego
from registrasion.controllers.category import CategoryController from registrasion.controllers.category import CategoryController
from cart_controller_helper import TestingCartController from controller_helpers import TestingCartController
from registrasion.controllers.product import ProductController from registrasion.controllers.product import ProductController
from test_cart import RegistrationCartTestCase from test_cart import RegistrationCartTestCase

View file

@ -5,7 +5,7 @@ from decimal import Decimal
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from registrasion import models as rego from registrasion import models as rego
from cart_controller_helper import TestingCartController from controller_helpers import TestingCartController
from registrasion.controllers.invoice import InvoiceController from registrasion.controllers.invoice import InvoiceController
from test_cart import RegistrationCartTestCase from test_cart import RegistrationCartTestCase
@ -197,4 +197,11 @@ class InvoiceTestCase(RegistrationCartTestCase):
def test_cannot_generate_blank_invoice(self): def test_cannot_generate_blank_invoice(self):
current_cart = TestingCartController.for_user(self.USER_1) current_cart = TestingCartController.for_user(self.USER_1)
with self.assertRaises(ValidationError): 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

View file

@ -1,6 +1,6 @@
import pytz import pytz
from cart_controller_helper import TestingCartController from controller_helpers import TestingCartController
from registrasion.controllers.invoice import InvoiceController from registrasion.controllers.invoice import InvoiceController
from test_cart import RegistrationCartTestCase from test_cart import RegistrationCartTestCase

View file

@ -6,7 +6,7 @@ from django.core.exceptions import ValidationError
from django.db import IntegrityError from django.db import IntegrityError
from registrasion import models as rego from registrasion import models as rego
from cart_controller_helper import TestingCartController from controller_helpers import TestingCartController
from registrasion.controllers.invoice import InvoiceController from registrasion.controllers.invoice import InvoiceController
from test_cart import RegistrationCartTestCase from test_cart import RegistrationCartTestCase