~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to command_classes.py

  • Committer: Aaron Bentley
  • Date: 2008-10-22 09:11:39 UTC
  • Revision ID: aaron@aaronbentley.com-20081022091139-28q2r3wcun52zz4u
Use lazy command-loading in bzrtools

Show diffs side-by-side

added added

removed removed

Lines of Context:
617
617
            cmd_zap,
618
618
            ]
619
619
 
620
 
 
621
 
if hasattr(bzrlib.commands, 'register_command'):
622
 
    for command in commands:
623
 
        bzrlib.commands.register_command(command)
624
 
 
625
 
 
626
 
def test_suite():
627
 
    from bzrlib.tests.TestUtil import TestLoader
628
 
    import tests
629
 
    from doctest import DocTestSuite, ELLIPSIS
630
 
    from unittest import TestSuite
631
 
    import bzrtools
632
 
    import tests.clean_tree
633
 
    import tests.test_dotgraph
634
 
    import tests.is_clean
635
 
    import tests.test_cbranch
636
 
    import tests.test_link_tree
637
 
    import tests.test_patch
638
 
    import tests.test_rspush
639
 
    import tests.upstream_import
640
 
    import zap
641
 
    import tests.blackbox
642
 
    import tests.shelf_tests
643
 
    result = TestSuite()
644
 
    result.addTest(DocTestSuite(bzrtools, optionflags=ELLIPSIS))
645
 
    result.addTest(tests.clean_tree.test_suite())
646
 
    result.addTest(tests.test_suite())
647
 
    result.addTest(TestLoader().loadTestsFromModule(tests.shelf_tests))
648
 
    result.addTest(tests.blackbox.test_suite())
649
 
    result.addTest(tests.upstream_import.test_suite())
650
 
    result.addTest(zap.test_suite())
651
 
    result.addTest(TestLoader().loadTestsFromModule(tests.test_dotgraph))
652
 
    result.addTest(TestLoader().loadTestsFromModule(tests.is_clean))
653
 
    result.addTest(TestLoader().loadTestsFromModule(tests.test_link_tree))
654
 
    result.addTest(TestLoader().loadTestsFromModule(tests.test_patch))
655
 
    result.addTest(TestLoader().loadTestsFromModule(tests.test_rspush))
656
 
    result.addTest(TestLoader().loadTestsFromModule(tests.test_cbranch))
657
 
    return result