From a1da8bcfdde2e8022d129db0e1ee6fdd9615956d Mon Sep 17 00:00:00 2001 From: Brandon Simmons Date: Thu, 14 Nov 2019 11:36:30 -0500 Subject: [PATCH] Fix product_mul_price test The intention was to make this two cases, using a top-level YAML list. The result was one test with duplicate keys (effectively only running the second test). This is an error that's now flagged by newer ruamel. Both tests needed to be "corrected" to pass and need review. --- .../v1/update/basic/product_mul_price.yaml | 89 +++++++++---------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/server/tests-py/queries/v1/update/basic/product_mul_price.yaml b/server/tests-py/queries/v1/update/basic/product_mul_price.yaml index f4b1b01e..4a4706a8 100644 --- a/server/tests-py/queries/v1/update/basic/product_mul_price.yaml +++ b/server/tests-py/queries/v1/update/basic/product_mul_price.yaml @@ -1,47 +1,46 @@ -description: Updated product price using _mul operator -url: /v1/query -status: 200 -response: - affected_rows: 2 - returning: - - product_id: 1 - name: Product 1 - price: 15 - - product_id: 2 - name: Product 2 - price: 45 -query: - type: update - args: - table: products - $mul: - price: 3 - where: - product_id: - $gte: 1 +- description: Updated product price using _mul operator + url: /v1/query + status: 200 + response: + affected_rows: 2 returning: - - product_id - - name - - price - -description: Updated product price using _mul operator -url: /v1/query -status: 200 -response: - affected_rows: 1 - returning: - - product_id: 2 - name: Product 2 - price: '16.5000' -query: - type: update - args: - table: products - $mul: - price: 1.1 - where: - product_id: 2 + - product_id: 1 + name: Product 1 + price: '15' + - product_id: 2 + name: Product 2 + price: '45' + query: + type: update + args: + table: products + $mul: + price: 3 + where: + product_id: + $gte: 1 + returning: + - product_id + - name + - price +- description: Updated product price using _mul operator + url: /v1/query + status: 200 + response: + affected_rows: 1 returning: - - product_id - - name - - price + - product_id: 2 + name: Product 2 + price: '49.5000' + query: + type: update + args: + table: products + $mul: + price: 1.1 + where: + product_id: 2 + returning: + - product_id + - name + - price