autowisp.tests.test_parameter_description_length module

Class Inheritance Diagram

Inheritance diagram of Parameter, Step, TestParameterDescriptionLength

Check that step argument help fits the parameter description column.

Project initialization stores the command line help of every processing step argument in parameter.description. SQLite ignores declared VARCHAR lengths, so an over-long help string is invisible locally and only breaks initialization against a centralised MySQL/MariaDB database, where it aborts the insert with “Data too long for column ‘description’”. This keeps the help strings within the column instead.

class autowisp.tests.test_parameter_description_length.TestParameterDescriptionLength(methodName='runTest')[source]

Bases: TestCase

Inheritance diagram of autowisp.tests.test_parameter_description_length.TestParameterDescriptionLength

Everything initialization inserts must fit its column.

classmethod setUpClass()[source]

Collect the descriptions initialization would store.

test_argument_help_fits_description_column()[source]

No argument help exceeds Parameter.description.

test_step_docstring_fits_description_column()[source]

No step docstring exceeds Step.description.

autowisp.tests.test_parameter_description_length._iter_step_modules()[source]

Yield (name, module) for each processing step of the pipeline.