예제 #1
0
def run_tests(headless: bool) -> Tuple[Tuple[int, int], Set[ModuleType]]:
    """
    @return ((failure_count, test_count), tested_modules)
    """
    import sys
    import test
    return test.run_doctests(sys.modules[__name__], module_dependencies=[key], headless=headless)
예제 #2
0
def run_tests():
    """
    @return (failure_count, test_count)
    """
    import sys
    import test
    return test.run_doctests(sys.modules[__name__], module_dependencies=[])
예제 #3
0
def run_tests():
    """
    @return (failure_count, test_count)
    """
    import axis_aligned_bounding_box
    module_dependencies = [axis_aligned_bounding_box]

    import sys
    import test
    return test.run_doctests(sys.modules[__name__], module_dependencies)
예제 #4
0
def run_tests():
    """
    @return (failure_count, test_count)
    """
    import sys
    import test
    return test.run_doctests(sys.modules[__name__],
                             module_dependencies=[key,
                                                  key_binding_manager,
                                                  main_menu_model,
                                                  main_menu_view])
예제 #5
0
def run_tests(headless: bool) -> Tuple[Tuple[int, int], Set[ModuleType]]:
    """
    @return ((failure_count, test_count), tested_modules)
    """
    import sys
    import test
    return test.run_doctests(sys.modules[__name__],
                             module_dependencies=[key,
                                                  key_binding_manager,
                                                  main_menu_model,
                                                  main_menu_view],
                             headless=headless)