Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 754 Bytes
modules = [
'testFeedvalidator',
'testUri',
'testXmlEncoding',
'testXmlEncodingDecode',
'testMediaTypes',
'testHowtoNs',
'testValidators',
'validtest',
'mkmsgs',
]
if __name__ == '__main__':
import os, sys, unittest
srcdir = os.path.join(os.path.dirname(os.path.abspath(__file__)),'src')
testdir = os.path.join(srcdir,'tests')
xdocsdir = os.path.join(os.path.dirname(srcdir),'docs-xml')
sys.path.insert(0,srcdir)
sys.path.insert(0,testdir)
sys.path.insert(0,xdocsdir)
suite = unittest.TestSuite()
for module in modules:
suite.addTest(__import__(module).buildTestSuite())
ttr = unittest.TextTestRunner().run(suite)
if not ttr.wasSuccessful():
sys.exit(10)
Something went wrong with that request. Please try again.