class documentation
Undocumented
Method | find |
Undocumented |
Method | find |
Undocumented |
Method | find |
Undocumented |
Method | parse |
Return the module and program names for a test case. |
Method | run |
Undocumented |
Method | run |
Undocumented |
Method | verify |
Undocumented |
Inherited from DataSuite
:
Method | setup |
Setup fixtures (ad-hoc) |
Class Variable | files |
Undocumented |
Class Variable | native |
Undocumented |
Class Variable | required |
Undocumented |
Class Variable | test |
Undocumented |
def find_missing_cache_files(self, modules:
dict[ str, str]
, manager: build.BuildManager
) -> set[ str]
:
(source)
¶
Undocumented
def parse_module(self, program_text:
str
, incremental_step: int
= 0) -> list[ tuple[ str, str, str]]
:
(source)
¶
Return the module and program names for a test case. Normally, the unit tests will parse the default ('__main__') module and follow all the imports listed there. 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: mypy -m foo.bar foo.baz You can also use `# cmdN:` to have a different cmd for incremental step N (2, 3, ...). Return a list of tuples (module name, file name, program text).
def run_case_once(self, testcase:
DataDrivenTestCase
, operations: list[ FileOperation]
= [], incremental_step: int
= 0):
(source)
¶
Undocumented