From 47b31406593ff35e1d9c8196aefb1af2d77cfbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 24 Jun 2013 00:22:52 +0200 Subject: [PATCH] Remove skip_zero on products_by_location in period test --- tests/test_stock.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_stock.py b/tests/test_stock.py index 41d3ddad54..dc1749a2f3 100644 --- a/tests/test_stock.py +++ b/tests/test_stock.py @@ -465,9 +465,6 @@ class StockTestCase(unittest.TestCase): products_by_location = partial(self.product.products_by_location, [storage.id], [product.id]) - products_by_location_zero = partial( - self.product.products_by_location, - [storage.id], [product.id], skip_zero=False) tests_pbl = [ ({'stock_date_end': today + relativedelta(days=-6)}, 0), @@ -484,8 +481,6 @@ class StockTestCase(unittest.TestCase): with transaction.set_context(context): if not quantity: self.assertEqual(products_by_location(), {}) - self.assertEqual(products_by_location_zero(), - {(storage.id, product.id): quantity}) else: self.assertEqual(products_by_location(), {(storage.id, product.id): quantity})