Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tests
Patryk Zawadzki8d4dd293fee7
diff --git a/saleor/cart/tests.py b/saleor/cart/tests.pyindex 4c190ae3d1..cd40e2268b 100755--- a/saleor/cart/tests.py+++ b/saleor/cart/tests.py@@ -1,6 +1,7 @@from __future__ import unicode_literalsfrom decimal import Decimal+from django.db import modelsfrom django.test import TestCasefrom django.utils.encoding import smart_textfrom mock import MagicMock@@ -15,6 +16,7 @@ __all__ = ['CartTest', 'BigShipCartFormTest']class BigShip(ProductVariant, StockedProduct, PhysicalProduct):+ name = models.CharField()def get_price_per_item(self, discounted=True, **kwargs):return self.price@@ -24,6 +26,7 @@ class BigShip(ProductVariant, StockedProduct, PhysicalProduct):class ShipPhoto(ProductVariant, PhysicalProduct):+ name = models.CharField()def get_slug(self):return 'bigship-photo'@@ -34,9 +37,8 @@ class BigShipCartForm(AddToCartForm):def get_variant(self, cleaned_data):return self.product-stock_product = BigShip(name='BigShip',- stock=10, price=Price(10, currency='USD'),- weight=Decimal(123))+stock_product = BigShip(name='BigShip', stock=10,+ price=Price(10, currency='USD'), weight=Decimal(123))stock_product.product = stock_productdigital_product = ShipPhoto(price=Price(10, currency='USD'))digital_product.product = digital_productdiff --git a/saleor/dashboard/templates/dashboard/base.html b/saleor/dashboard/templates/dashboard/base.htmlindex 7b531d0d00..1cff3ef20b 100644--- a/saleor/dashboard/templates/dashboard/base.html+++ b/saleor/dashboard/templates/dashboard/base.html@@ -21,7 +21,7 @@</head><body>-+sa<div id="wrapper"><nav class="navbar navbar-default navbar-inverse navbar-static-top" role="navigation" style="margin-bottom: 0">