SuiteFactory
- class great_expectations.core.factory.SuiteFactory(store: ExpectationsStore)#
- add(suite: great_expectations.core.expectation_suite.ExpectationSuite)great_expectations.core.expectation_suite.ExpectationSuite #
Add an ExpectationSuite to the collection.
- Parameters
suite – ExpectationSuite to add
- Raises
DataContextError if ExpectationSuite already exists –
- add_or_update(suite: great_expectations.core.expectation_suite.ExpectationSuite)great_expectations.core.expectation_suite.ExpectationSuite #
Add or update an ExpectationSuite by name.
If an ExpectationSuite with the same name exists, overwrite it, otherwise create a new ExpectationSuite. On update, Expectations in the Suite which match a previously existing Expectation maintain a stable ID, and Expectations which have changed receive a new ID.
- Parameters
suite – ExpectationSuite to add or update
- all()Iterable[great_expectations.core.expectation_suite.ExpectationSuite] #
Get all ExpectationSuites.
- delete(name: str)None #
Delete an ExpectationSuite from the collection.
- Parameters
name – The name of the ExpectationSuite to delete
- Raises
DataContextError if ExpectationSuite doesn't exist –
- get(name: str)great_expectations.core.expectation_suite.ExpectationSuite #
Get an ExpectationSuite from the collection by name.
- Parameters
name – Name of ExpectationSuite to get
- Raises
DataContextError when ExpectationSuite is not found. –