Remove skip_zero on products_by_location in period test
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user