The test was failing due to SQLAlchemy DetachedInstanceError when accessing object properties after transaction.manager.commit(). Changes: - Save cart and shop UUIDs before commit to avoid detached access - Re-query cart from database after commit using get_cart_by_id - Pass shop_id parameter in cart URL to properly set request.shop - Use saved UUID variables instead of accessing detached objects This ensures request.shop_location is correctly resolved so the handling options (local pickup, delivery, shipping) render properly in the cart template. All 357 tests now pass including the physical product handling test. |
||
|---|---|---|
| .. | ||
| lib | ||
| models | ||
| scripts | ||
| static | ||
| templates | ||
| tests | ||
| views | ||
| __init__.py | ||
| config_jinja2.py | ||
| request_methods.py | ||
| routes.py | ||