This commit is contained in:
Christopher Neugebauer 2016-04-02 13:29:53 +11:00
parent 77b6c87973
commit 2e0144effe
3 changed files with 8 additions and 5 deletions

View file

@ -2,9 +2,11 @@ from .product import ProductController
from registrasion import models as rego
class AllProducts(object):
pass
class CategoryController(object):
@classmethod

View file

@ -293,7 +293,8 @@ class BasicCartTests(RegistrationCartTestCase):
def __available_products_test(self, item, quantity):
self.set_limits()
get_prods = lambda: ProductController.available_products(
def get_prods():
return ProductController.available_products(
self.USER_1,
products=[self.PROD_2, self.PROD_3, self.PROD_4],
)