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})