Skip to main content
Version: 1.2.1

ValidationDefinitionFactory

class great_expectations.core.factory.ValidationDefinitionFactory(store: ValidationDefinitionStore)#
add(validation: great_expectations.core.validation_definition.ValidationDefinition) great_expectations.core.validation_definition.ValidationDefinition#

Add a ValidationDefinition to the collection.

Parameters

validation – ValidationDefinition to add

Raises

DataContextError if ValidationDefinition already exists

all() Iterable[great_expectations.core.validation_definition.ValidationDefinition]#

Get all ValidationDefinitions.

delete(name: str) None#

Delete a ValidationDefinition from the collection.

Parameters

name – The name of the ValidationDefinition to delete

Raises

DataContextError if ValidationDefinition doesn't exist

get(name: str) great_expectations.core.validation_definition.ValidationDefinition#

Get a ValidationDefinition from the collection by name.

Parameters

name – Name of ValidationDefinition to get

Raises

DataContextError when ValidationDefinition is not found.