SuiteFactory
Responsible for basic CRUD operations on a Data Context's ExpectationSuites.
Add an ExpectationSuite to the collection.
Parameters
Name Description suite
ExpectationSuite to add
Raises
Type Description 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
Name Description suite
ExpectationSuite to add or update
Get all ExpectationSuites.
Delete an ExpectationSuite from the collection.
Parameters
Name Description name
The name of the ExpectationSuite to delete
Raises
Type Description DataContextError
if ExpectationSuite doesn't exist
Get an ExpectationSuite from the collection by name.
Parameters
Name Description name
Name of ExpectationSuite to get
Raises
Type Description 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