class documentation

class LintModuleOutputUpdate(LintModuleTest): (source)

View In Hierarchy

Class to be used if expected output files should be updated instead of checked.

Class TestDialect Dialect used by the csv writer.
Method __init__ Undocumented
Method _check_output_text Overwrite or remove the expected output file based on actual output.

Inherited from LintModuleTest:

Static Method get_expected_messages Parses a file and get expected messages.
Static Method multiset_difference Takes two multisets and compares them.
Method __str__ Undocumented
Method error_msg_for_unequal_messages Undocumented
Method error_msg_for_unequal_output Undocumented
Method runTest Undocumented
Method setUp Undocumented
Class Variable maxDiff Undocumented
Method _get_actual Undocumented
Method _get_expected Undocumented
Method _open_expected_file Undocumented
Method _open_source_file Undocumented
Method _runTest Undocumented
Method _should_be_skipped_due_to_version Undocumented
Instance Variable _check_end_position Undocumented
Instance Variable _config Undocumented
Instance Variable _linter Undocumented
Instance Variable _test_file Undocumented
def __init__(self, test_file: FunctionalTestFile, config: Config|None = None): (source)
def _check_output_text(self, _: MessageCounter, expected_output: list[OutputLine], actual_output: list[OutputLine]): (source)

Overwrite or remove the expected output file based on actual output.