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,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],
|
||||
)
|
||||
|
|
|
@ -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