uvex_transients.surveys.utils.ActionSpec.validate_against_table#

ActionSpec.validate_against_table(table: QTable, *, action_name: str, action_column: str = 'action') → list[str][source]#

Validate rows corresponding to one action.

Parameters:
  • table (QTable) – Complete survey schedule.

  • action_name (str) – Action value governed by this specification.

  • action_column (str) – Name of the column containing action labels.

Returns:

Validation errors. An empty list indicates success.

Return type:

list[str]