changeset 1343378958ef in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=1343378958ef
description:
        Support window functions with SQLite backend

        issue7703
        review364231002
diffstat:

 tests/scenario_stock_product_quantities_by_warehouse.rst |  10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diffs (23 lines):

diff -r afd340231ad0 -r 1343378958ef 
tests/scenario_stock_product_quantities_by_warehouse.rst
--- a/tests/scenario_stock_product_quantities_by_warehouse.rst  Mon Nov 01 
17:08:50 2021 +0100
+++ b/tests/scenario_stock_product_quantities_by_warehouse.rst  Mon Nov 08 
19:30:15 2021 +0100
@@ -113,18 +113,10 @@
     ...   records = ProductQuantitiesByWarehouseMove.find([])
     >>> len(records)
     4
-    >>> if backend.name != 'sqlite':
-    ...     [(r.date, r.cumulative_quantity_start, r.quantity, 
r.cumulative_quantity_end)
+    >>> [(r.date, r.cumulative_quantity_start, r.quantity, 
r.cumulative_quantity_end)
     ...         for r in records] == [
     ...     (yesterday, 0, 10, 10),
     ...     (tomorrow, 10, -6, 4),
     ...     (tomorrow, 4, 5, 9),
     ...     (tomorrow, 9, -3, 6)]
-    ... else:
-    ...     [(r.date, r.cumulative_quantity_start, r.quantity, 
r.cumulative_quantity_end)
-    ...         for r in records] == [
-    ...     (yesterday, 0, 10, 0),
-    ...     (tomorrow, 10, -6, 10),
-    ...     (tomorrow, 10, 5, 10),
-    ...     (tomorrow, 10, -3, 10)]
     True

Reply via email to