Commits

Kai Diefenbach  committed 853e7b0

Added test for calculate_product_sales and order items without product.

  • Participants
  • Parent commits baca3fb

Comments (0)

Files changed (1)

File lfs/marketing/tests.py

 
         calculate_product_sales()
 
+    def test_calculate_product_sales(self):
+        calculate_product_sales()
+
+        # This should not break calculate_product_sales()
+        self.oi1.product = None
+        self.oi1.save()
+
+        calculate_product_sales()
+
     def test_topseller_1(self):
         """Tests general topsellers.
         """