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.
This commit is contained in:
Brandon Simmons
2019-11-14 11:36:30 -05:00
parent 92b1f9c93d
commit a1da8bcfdd

View File

@@ -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