def test_suite(): suite = unittest.TestSuite() if sys.version_info >= (2, 4): suite.addTests([make_doctest('test_css_select.txt')]) suite.addTests([make_doctest('test_css.txt')]) suite.addTests(doctest.DocTestSuite(cssselect)) suite.addTests(list(CSSTestCase.all())) return suite
def test_suite(): suite = unittest.TestSuite() try: import cssselect except ImportError: # no 'cssselect' installed print("Skipping tests in lxml.cssselect - external cssselect package is not installed") return suite import lxml.cssselect suite.addTests(doctest.DocTestSuite(lxml.cssselect)) suite.addTests([unittest.makeSuite(CSSTestCase)]) return suite
def test_suite(): suite = unittest.TestSuite() suite.addTests([make_doctest("test_basic.txt")]) suite.addTests([doctest.DocTestSuite(lxml.html)]) return suite
def test_suite(): suite = unittest.TestSuite() if sys.version_info >= (2,4): suite.addTests([make_doctest('test_diff.txt'), doctest.DocTestSuite(diff)]) return suite
def test_suite(): suite = unittest.TestSuite() if sys.version_info >= (2,4): suite.addTests([make_doctest('test_basic.txt')]) suite.addTests([doctest.DocTestSuite(lxml.html)]) return suite
def test_suite(): suite = unittest.TestSuite() suite.addTests([make_doctest("test_diff.txt"), doctest.DocTestSuite(diff)]) return suite