Fix ups
modified: make_post_sell/models/cart.py modified: make_post_sell/models/shop.py modified: make_post_sell/models/user.py modified: make_post_sell/tests/test_functional.py modified: make_post_sell/views/shop.py
This commit is contained in:
parent
e6e519b8e0
commit
0149a1038d
5 changed files with 4 additions and 5 deletions
|
|
@ -2,7 +2,7 @@ import uuid
|
|||
|
||||
import json
|
||||
|
||||
from sqlalchemy.orm import relationship, backref
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from sqlalchemy.ext.associationproxy import association_proxy
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from .meta import Base, RBase, UUIDType, now_timestamp, foreign_key, get_object_
|
|||
|
||||
from sqlalchemy.ext.associationproxy import association_proxy
|
||||
|
||||
from sqlalchemy.orm import relationship, backref
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from .user_shop import UserShop
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from .meta import Base, RBase, UUIDType, now_timestamp, foreign_key, get_object_
|
|||
|
||||
from sqlalchemy.ext.associationproxy import association_proxy
|
||||
|
||||
from sqlalchemy.orm import relationship, backref
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from .user_shop import UserShop
|
||||
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ class AuthenticatedFunctionalTests(FunctionalTests):
|
|||
res_body = res.body.decode()
|
||||
|
||||
self.assertIn("Please confirm your order.", res_body)
|
||||
#self.assertIn("Visa", res_body)
|
||||
self.assertIn("Visa", res_body)
|
||||
self.assertIn("Are you sure you want to charge", res_body)
|
||||
|
||||
redirect_res1 = self.testapp.get(
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ def get_shop_from_matchdict(request, prefetched_shop=None):
|
|||
@view_config(route_name="home", renderer="home.j2")
|
||||
def home(request):
|
||||
products = None
|
||||
print(request.active_cart)
|
||||
if request.shop:
|
||||
products = get_products_from_a_shop(request.shop)
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue