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: str, result: list[str], header: bool): (source)

Undocumented

def parse_flags(self, program_text: str, extra: list[str]) -> Options: (source)

Undocumented

def parse_modules(self, program_text: str) -> list[str]: (source)

Undocumented

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

Undocumented

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

Undocumented

base_path: str = (source)

Undocumented

required_out_section: bool = (source)