text_lint.schema.assertions.SchemaAssertions

class text_lint.schema.assertions.SchemaAssertions(schema: Schema)[source]

Bases: SchemaSectionBase[AssertionBase]

The assertions section of the schema file.

hook_create_operation_instance(operation_class: Type[AssertionBase], yaml_definition: AliasYamlOperation) AliasYamlOperation[source]

Modify the yaml definition prior to creating each operation instance.

Return type:

AliasYamlOperation

hook_load_operation_instances(operation_instances: List[AssertionBase], operation_definitions: List[AliasYamlOperation]) List[AssertionBase][source]

Modify the operation instances prior to returning them all.

Return type:

List[AssertionBase]