ExpectationSuite
Set-like collection of Expectations.
Parameters
Name Description name
Name of the Expectation Suite
Add an Expectation to the collection.
Delete an Expectation from the collection.
Example
>>> suite.delete_expectation(suite.expectations[0])
Raises
Type Description KeyError
Expectation not found in suite.
Save this ExpectationSuite.
Returns a JSON-serializable dict representation of this ExpectationSuite.
Returns
Type Description Dict[str, JSONValues]
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]