class documentation

class StubgenUtilSuite(unittest.TestCase): (source)

View In Hierarchy

Unit tests for stubgen utility functions.
Method assert​_parse​_signature Undocumented
Method test​_build​_signature Undocumented
Method test​_common​_dir​_prefix​_unix Undocumented
Method test​_common​_dir​_prefix​_win Undocumented
Method test​_find​_unique​_signatures Undocumented
Method test​_infer​_arg​_sig​_from​_anon​_docstring Undocumented
Method test​_infer​_prop​_type​_from​_docstring Undocumented
Method test​_infer​_sig​_from​_docstring Undocumented
Method test​_infer​_sig​_from​_docstring​_bad​_indentation Undocumented
Method test​_infer​_sig​_from​_docstring​_duplicate​_args Undocumented
Method test​_infer​_sig​_from​_docstring​_square​_brackets Undocumented
Method test​_parse​_all​_signatures Undocumented
Method test​_parse​_signature Undocumented
Method test​_parse​_signature​_with​_args Undocumented
Method test​_parse​_signature​_with​_default​_arg Undocumented
Method test​_parse​_signature​_with​_kw​_only​_arg Undocumented
Method test​_parse​_signature​_with​_optional​_args Undocumented
Method test​_parse​_signature​_with​_qualified​_function Undocumented
Method test​_parse​_signature​_with​_star​_arg Undocumented
Method test​_parse​_signature​_with​_star​_star​_arg Undocumented
Method test​_remove​_misplaced​_type​_comments​_1 Undocumented
Method test​_remove​_misplaced​_type​_comments​_2 Undocumented
Method test​_remove​_misplaced​_type​_comments​_3 Undocumented
Method test​_remove​_misplaced​_type​_comments​_4 Undocumented
Method test​_remove​_misplaced​_type​_comments​_5 Undocumented
Method test​_remove​_misplaced​_type​_comments​_bytes Undocumented
def assert_parse_signature(self, sig, result): (source)

Undocumented

Parameters
sig:strUndocumented
result:Tuple[str, List[str], List[str]]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