Last active
June 26, 2023 07:15
-
-
Save a-chumagin/e42248476c9647563ef377857d6f30a5 to your computer and use it in GitHub Desktop.
Params in test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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