silo.low_code.fixtures.framework_control module

silo.low_code.fixtures.framework_control.enable_typechecking()

Enables TypeChecking

Enables TypeChecking to be performed for the tests. After the tests execute, typechecking will be disabled

silo.low_code.fixtures.framework_control.perform_collector_registration(mocker)

Perform automatic step registration

silo.low_code.fixtures.framework_control.register_step()

Register a step into the ActionRegistrar

Parameters
  • func (callable) – Function / Class to register

  • name (str) – Name of the function to be referenced by the Snippet Framework

  • action_registrar (registrar.ActionRegistrar) – Registrar to use for registration. Default: Global Registrar

  • get_req_id (callable) – Function for looking up the request ID. Default: None

  • metadata (dict) – Metadata to be registered for the step. Default: {}

  • reg_type (int) – Registration type. Default: STEP_TYPE_PROCESSOR

Return type

decorators.registered_step

silo.low_code.fixtures.framework_control.registrar_clean(mocker)

Cleanout all registered steps from the registrar

Return type

registrar.ActionRegistrar

silo.low_code.fixtures.framework_control.reset_framework(generate_logpath, mocker, perform_collector_registration)

Fully reset the framework back to an empty state

silo.low_code.fixtures.framework_control.snip_id()

Get the next snippet_id

Return type

int