~abentley/bzrtools/bzrtools.dev

147.1.1 by Robert Collins
start adding baz_import unit test cases
1
def test_suite():
147.1.54 by Aaron Bentley
Got bzrtools almost working, except baz-import
2
    try:
388 by Aaron Bentley
Fix test suite
3
        from bzrtools.tests.errors import NoPyBaz
344 by Aaron Bentley
Updated to run all tests from test.py
4
        import bzrtools.tests.test_baz_import
5
        return bzrtools.tests.test_baz_import.test_suite()
147.1.54 by Aaron Bentley
Got bzrtools almost working, except baz-import
6
    except ImportError:
344 by Aaron Bentley
Updated to run all tests from test.py
7
    	try:
388 by Aaron Bentley
Fix test suite
8
            from bzrlib.plugins.bzrtools.errors import NoPyBaz
344 by Aaron Bentley
Updated to run all tests from test.py
9
            import bzrlib.plugins.bzrtools.tests.test_baz_import
10
            return bzrlib.plugins.bzrtools.tests.test_baz_import.test_suite()
11
	except ImportError:
12
            from unittest import TestSuite
13
            return TestSuite()
388 by Aaron Bentley
Fix test suite
14
        except NoPyBaz:
15
            from unittest import TestSuite
16
            return TestSuite()
387 by Aaron Bentley
Got test suite running with PyBaz unavailable
17
    except NoPyBaz:
18
        from unittest import TestSuite
19
        return TestSuite()