class documentation

class StubgenPythonSuite(DataSuite): (source)

View In Hierarchy

Data-driven end-to-end test cases that generate stub files.

You can use these magic test case name suffixes:

*_semanal
Run semantic analysis (slow as this uses real stubs -- only use when necessary)
*_import
Import module and perform runtime introspection (in the current process!)

You can use these magic comments:

# flags: --some-stubgen-option ...
Specify custom stubgen options
# modules: module1 module2 ...
Specify which modules to output (by default only 'main')
Method add​_file Undocumented
Method parse​_flags Undocumented
Method parse​_modules Undocumented
Method run​_case Undocumented
Method run​_case​_inner Undocumented
Class Variable base​_path Undocumented
Class Variable files Undocumented
Class Variable required​_out​_section Undocumented

Inherited from DataSuite:

Method setup Setup fixtures (ad-hoc)
Class Variable native​_sep Undocumented
Class Variable test​_name​_suffix Undocumented
def add_file(self, path, result, header): (source)

Undocumented

Parameters
path:strUndocumented
result:List[str]Undocumented
header:boolUndocumented
def parse_flags(self, program_text, extra): (source)

Undocumented

Parameters
program​_text:strUndocumented
extra:List[str]Undocumented
Returns
OptionsUndocumented
def parse_modules(self, program_text): (source)

Undocumented

Parameters
program​_text:strUndocumented
Returns
List[str]Undocumented
def run_case(self, testcase): (source)

Undocumented

Parameters
testcase:DataDrivenTestCaseUndocumented
def run_case_inner(self, testcase): (source)

Undocumented

Parameters
testcase:DataDrivenTestCaseUndocumented
base_path: str = (source)

Undocumented

files: list[str] = (source)

Undocumented

required_out_section: bool = (source)