s/cart_controller_helper/controller_helpers/
This commit is contained in:
		
							parent
							
								
									8e95bb7469
								
							
						
					
					
						commit
						ac10ea4ee8
					
				
					 7 changed files with 14 additions and 7 deletions
				
			
		|  | @ -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') | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -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  | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer