class documentation

Undocumented

Method build Undocumented
Method format_triggered Undocumented
Method get_build_steps Get the number of regular incremental steps to run, from the test source
Method get_inspect Undocumented
Method get_options Undocumented
Method get_suggest Undocumented
Method maybe_inspect Undocumented
Method maybe_suggest Undocumented
Method parse_sources Return target BuildSources for a test case.
Method perform_step Perform one fine-grained incremental build step (after some file updates/deletions).
Method run_case Undocumented
Method run_check Undocumented
Method should_skip Undocumented
Class Variable files Undocumented
Class Variable use_cache Undocumented

Inherited from DataSuite:

Method setup Setup fixtures (ad-hoc)
Class Variable native_sep Undocumented
Class Variable required_out_section Undocumented
Class Variable test_name_suffix Undocumented
def build(self, options: Options, sources: list[BuildSource]) -> list[str]: (source)

Undocumented

def format_triggered(self, triggered: list[list[str]]) -> list[str]: (source)

Undocumented

def get_build_steps(self, program_text: str) -> int: (source)

Get the number of regular incremental steps to run, from the test source

def get_inspect(self, program_text: str, incremental_step: int) -> list[tuple[str, str]]: (source)

Undocumented

def get_options(self, source: str, testcase: DataDrivenTestCase, build_cache: bool) -> Options: (source)

Undocumented

def get_suggest(self, program_text: str, incremental_step: int) -> list[tuple[str, str]]: (source)

Undocumented

def maybe_inspect(self, step: int, server: Server, src: str) -> list[str]: (source)

Undocumented

def maybe_suggest(self, step: int, server: Server, src: str, tmp_dir: str) -> list[str]: (source)

Undocumented

def parse_sources(self, program_text: str, incremental_step: int, options: Options) -> list[BuildSource]: (source)

Return target BuildSources for a test case. Normally, the unit tests will check all files included in the test case. This differs from how testcheck works by default, as dmypy doesn't currently support following imports. You can override this behavior and instruct the tests to check multiple modules by using a comment like this in the test case input: # cmd: main a.py You can also use `# cmdN:` to have a different cmd for incremental step N (2, 3, ...).

def perform_step(self, operations: list[UpdateFile|DeleteFile], server: Server, options: Options, build_options: Options, testcase: DataDrivenTestCase, main_src: str, step: int, num_regular_incremental_steps: int) -> tuple[list[str], list[list[str]]]: (source)

Perform one fine-grained incremental build step (after some file updates/deletions). Return (mypy output, triggered targets).

def run_case(self, testcase: DataDrivenTestCase): (source)

Undocumented

def run_check(self, server: Server, sources: list[BuildSource]) -> list[str]: (source)

Undocumented

def should_skip(self, testcase: DataDrivenTestCase) -> bool: (source)

Undocumented