paula.testing: tests pass, no app dep, currently no zcml
[paula/paual.testing.git] / paula.testing / src / paula / testing / tests.py
blob47d71e3330291439cc6e49e7197001f2c15e0752
1 # paula.testing.tests.py
3 # You can simply copy this file to your package and adjust it to your needs
5 # pt.FunctionalDocFileSuite will load your package's ftesting.zcml and
6 # otherwise setup the same globs as pt.setUp - have a look at __init__.py
7 """
8 """
10 import unittest
11 from zope.testing import doctestunit
12 #from zope.component.testing import setUp
14 from paula.testing import get_test_suite
15 from paula.testing import setUp, tearDown
17 # XXX: this could be derived from __name__, but then it would not work,
18 # if being called as __main__ (see bottom) - is that needed?
19 # eventually we could then derive it from path?!
20 from config import PACKAGE_NAME
22 # File to test, relative to the package root
23 # all .py files are found
24 # all .txt files with corresponding .py file are found
25 files = [
26 'README.txt'
29 test_suite = get_test_suite(PACKAGE_NAME, files)
31 if __name__ == '__main__':
32 unittest.main(defaultTest='test_suite')