Expectations utils
Utilities to be used by custom expectations.
validate_result(expectation, configuration, metrics, runtime_configuration, execution_engine, base_expectation)
¶
Validates that the unexpected_index_list in the tests is corretly defined.
Additionally, it validates the expectation using the GE _validate method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
expectation |
Expectation
|
Expectation to validate. |
required |
configuration |
ExpectationConfiguration
|
Configuration used in the test. |
required |
metrics |
dict
|
Test result metrics. |
required |
runtime_configuration |
Optional[dict]
|
Configuration used when running the expectation. |
required |
execution_engine |
Optional[ExecutionEngine]
|
Execution engine used in the expectation. |
required |
base_expectation |
Expectation
|
Base expectation to validate. |
required |