text_lint.schema.assertions.SchemaAssertions

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

Bases: SchemaSectionBase[AssertionBase]

The assertions section of the schema file.

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

Modify the yaml definition prior to creating each operation instance.

Rückgabetyp:

AliasYamlOperation

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

Modify the operation instances prior to returning them all.

Rückgabetyp:

List[AssertionBase]