~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

Added some selftests executed through bash.

Based on a discussion with Vincent Ladeuil in the merge request proposing inclusion of the plugin into the bzr source tree:
https://code.launchpad.net/~gagern/bzr/bug560030-include-bash-completion-plugin/+merge/23912

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        bash_completion_function(sys.stdout, **kwargs)
62
62
 
63
63
register_command(cmd_bash_completion)
 
64
 
 
65
def load_tests(basic_tests, module, loader):
 
66
    testmod_names = [
 
67
        'tests',
 
68
        ]
 
69
    basic_tests.addTest(loader.loadTestsFromModuleNames(
 
70
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
 
71
    return basic_tests