flake8
This commit is contained in:
parent
77b6c87973
commit
2e0144effe
3 changed files with 8 additions and 5 deletions
|
@ -2,9 +2,11 @@ from .product import ProductController
|
|||
|
||||
from registrasion import models as rego
|
||||
|
||||
|
||||
class AllProducts(object):
|
||||
pass
|
||||
|
||||
|
||||
class CategoryController(object):
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -293,10 +293,11 @@ class BasicCartTests(RegistrationCartTestCase):
|
|||
def __available_products_test(self, item, quantity):
|
||||
self.set_limits()
|
||||
|
||||
get_prods = lambda: ProductController.available_products(
|
||||
self.USER_1,
|
||||
products=[self.PROD_2, self.PROD_3, self.PROD_4],
|
||||
)
|
||||
def get_prods():
|
||||
return ProductController.available_products(
|
||||
self.USER_1,
|
||||
products=[self.PROD_2, self.PROD_3, self.PROD_4],
|
||||
)
|
||||
|
||||
current_cart = CartController.for_user(self.USER_1)
|
||||
prods = get_prods()
|
||||
|
|
|
@ -243,7 +243,7 @@ def product_category(request, category_id):
|
|||
if not products:
|
||||
messages.warning(
|
||||
request,
|
||||
"There are no products available from category: "+ category.name,
|
||||
"There are no products available from category: " + category.name,
|
||||
)
|
||||
return redirect("dashboard")
|
||||
|
||||
|
|
Loading…
Reference in a new issue