Skip to content

Instantly share code, notes, and snippets.

@a-chumagin
Last active June 26, 2023 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-chumagin/e42248476c9647563ef377857d6f30a5 to your computer and use it in GitHub Desktop.
Save a-chumagin/e42248476c9647563ef377857d6f30a5 to your computer and use it in GitHub Desktop.
Params in test
{
"data_asset_type": null,
"expectation_suite_name": "my_suite",
"expectations": [
{
"expectation_type": "expect_column_values_to_be_between",
"kwargs": {
"column": {
"$PARAMETER": "column_name"
},
"max_value": {
"$PARAMETER": "max_value"
},
"min_value": {
"$PARAMETER": "min_value"
}
}
}
],
"ge_cloud_id": null,
"meta": {
"great_expectations_version": "0.17.1"
}
}
suite = context.get_expectation_suite(expectation_suite_name="my_suite")
validator.validate(expectation_suite=suite,
evaluation_parameters={
"expectation_type": "expect_column_values_to_be_between",
"column_name": "salary",
"min_value": 1,
"max_value": 500
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment