chore: add "learning" sample data for dynamic assertion (#17155)

This commit is contained in:
Teddy 2024-07-25 08:24:15 +02:00 committed by GitHub
parent 533d88905a
commit c336d86a44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 33 deletions

View File

@ -478,9 +478,7 @@
"name": "max",
"value": "None"
}
],
"maxBound": 96162,
"minBound": 90001
]
},
{
"result": "Found min=35005, max=92808 vs. the expected min=90001, max=96162.",
@ -494,9 +492,7 @@
"name": "max",
"value": "92808"
}
],
"maxBound": 96162,
"minBound": 90001
]
},
{
"result": "Found min=90006, max=92808 vs. the expected min=90001, max=96162.",
@ -538,9 +534,7 @@
"name": "max",
"value": "99001"
}
],
"maxBound": 96162,
"minBound": 90001
]
},
{
"result": "Found min=1001, max=2789 vs. the expected min=90001, max=96162.",
@ -554,9 +548,7 @@
"name": "max",
"value": "2789"
}
],
"maxBound": 96162,
"minBound": 90001
]
},
{
"result": "Found min=91009, max=92808 vs. the expected min=90001, max=96162.",
@ -570,8 +562,7 @@
"name": "max",
"value": "92808"
}
],
"minBound": 90001
]
},
{
"result": "Found min=90008, max=92808 vs. the expected min=90001, max=96162.",
@ -585,9 +576,7 @@
"name": "max",
"value": "92808"
}
],
"maxBound": 96162,
"minBound": 90001
]
},
{
"result": "Found min=92000, max=92808 vs. the expected min=90001, max=96162.",
@ -601,9 +590,7 @@
"name": "max",
"value": "92808"
}
],
"maxBound": 96162,
"minBound": 90001
]
},
{
"result": "Found min=90001, max=96612 vs. the expected min=90001, max=96162.",
@ -617,9 +604,7 @@
"name": "max",
"value": "96612"
}
],
"maxBound": 96162,
"minBound": 90001
]
}
]
},

View File

@ -236,16 +236,8 @@
"description": "test the number of column in table is between x and y",
"entityLink": "<#E::table::sample_data.ecommerce_db.shopify.dim_address::columns::zip>",
"testDefinitionName": "columnValuesToBeBetween",
"parameterValues": [
{
"name": "min",
"value": "90001"
},
{
"name": "max",
"value": "96162"
}
],
"parameterValues": [],
"useDynamicAssertion": true,
"resolutions": {
"sequenceOne": [
{

View File

@ -1500,6 +1500,7 @@ class SampleDataSource(
TestCaseParameterValue(**param_values)
for param_values in test_case["parameterValues"]
],
useDynamicAssertion=test_case.get("useDynamicAssertion", False),
) # type: ignore
)
yield Either(right=test_case_req)