ExpectationSuite
Set-like collection of Expectations.
- Parameters
name – Name of the Expectation Suite
expectations – Expectation Configurations to associate with this Expectation Suite.
suite_parameters – Suite parameters to be substituted when evaluating Expectations.
meta – Metadata related to the suite.
id – Great Expectations Cloud id for this Expectation Suite.
Add an Expectation to the collection.
Delete an Expectation from the collection.
Example
>>> suite.delete_expectation(suite.expectations[0])
- Raises
KeyError – Expectation not found in suite.
Save this ExpectationSuite.
Returns a JSON-serializable dict representation of this ExpectationSuite.
- Returns
A JSON-serializable dict representation of this ExpectationSuite.
Signature
class great_expectations.ExpectationSuite(name: Optional[str] = None, expectations: Optional[Sequence[Union[dict, ExpectationConfiguration, Expectation]]] = None, suite_parameters: Optional[dict] = None, meta: Optional[dict] = None, notes: str | list[str] | None = None, id: Optional[str] = None)
Methods
Signature
add_expectation(expectation: _TExpectation) → _TExpectation
Signature
delete_expectation(expectation: Expectation) → Expectation
Signature
save() → None
Signature
to_json_dict() → Dict[str, JSONValues]