SuiteFactory
Responsible for basic CRUD operations on a Data Context's ExpectationSuites.
Add an ExpectationSuite to the collection.
- Parameters
suite – ExpectationSuite to add
- Raises
DataContextError if ExpectationSuite already exists –
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
Get all ExpectationSuites.
Delete an ExpectationSuite from the collection.
- Parameters
name – The name of the ExpectationSuite to delete
- Raises
DataContextError if ExpectationSuite doesn't exist –
Get an ExpectationSuite from the collection by name.
- Parameters
name – Name of ExpectationSuite to get
- Raises
DataContextError when ExpectationSuite is not found. –
class great_expectations.core.factory.SuiteFactory(store: ExpectationsStore)
Methods
add(suite: great_expectations.core.expectation_suite.ExpectationSuite) → great_expectations.core.expectation_suite.ExpectationSuite
add_or_update(suite: great_expectations.core.expectation_suite.ExpectationSuite) → great_expectations.core.expectation_suite.ExpectationSuite
all() → Iterable[great_expectations.core.expectation_suite.ExpectationSuite]
delete(name: str) → None
get(name: str) → great_expectations.core.expectation_suite.ExpectationSuite