class documentation

class StubgenUtilSuite(unittest.TestCase): (source)

View In Hierarchy

Unit tests for stubgen utility functions.

def assert_parse_signature(self, sig: str, result: tuple[str, list[str], list[str]]): (source)

Undocumented

def test_build_signature(self): (source)

Undocumented

@unittest.skipIf((sys.platform == 'win32'), 'Tests building the paths common ancestor on *nix')
def test_common_dir_prefix_unix(self): (source)

Undocumented

@unittest.skipIf((sys.platform != 'win32'), 'Tests building the paths common ancestor on Windows')
def test_common_dir_prefix_win(self): (source)

Undocumented

def test_find_unique_signatures(self): (source)

Undocumented

def test_infer_arg_sig_from_anon_docstring(self): (source)

Undocumented

def test_infer_prop_type_from_docstring(self): (source)

Undocumented

def test_infer_sig_from_docstring(self): (source)

Undocumented

def test_infer_sig_from_docstring_bad_indentation(self): (source)

Undocumented

def test_infer_sig_from_docstring_duplicate_args(self): (source)

Undocumented

def test_infer_sig_from_docstring_square_brackets(self): (source)

Undocumented

def test_parse_all_signatures(self): (source)

Undocumented

def test_parse_signature(self): (source)

Undocumented

def test_parse_signature_with_args(self): (source)

Undocumented

def test_parse_signature_with_default_arg(self): (source)

Undocumented

def test_parse_signature_with_kw_only_arg(self): (source)

Undocumented

def test_parse_signature_with_optional_args(self): (source)

Undocumented

def test_parse_signature_with_qualified_function(self): (source)

Undocumented

def test_parse_signature_with_star_arg(self): (source)

Undocumented

def test_parse_signature_with_star_star_arg(self): (source)

Undocumented

def test_remove_misplaced_type_comments_1(self): (source)

Undocumented

def test_remove_misplaced_type_comments_2(self): (source)

Undocumented

def test_remove_misplaced_type_comments_3(self): (source)

Undocumented

def test_remove_misplaced_type_comments_4(self): (source)

Undocumented

def test_remove_misplaced_type_comments_5(self): (source)

Undocumented

def test_remove_misplaced_type_comments_bytes(self): (source)

Undocumented