Changeset 1697 in products for quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
- Timestamp:
- Feb 10, 2010 5:29:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
r1696 r1697 5 5 from Testing import ZopeTestCase as ztc 6 6 7 from Products.Five import zcml8 from Products.Five import fiveconfigure9 from Products.PloneTestCase import PloneTestCase as ptc10 from Products.PloneTestCase.layer import PloneSite11 ptc.setupPloneSite()12 13 import quintagroup.canonicalpath14 15 class TestCase(ptc.PloneTestCase):16 class layer(PloneSite):17 @classmethod18 def setUp(cls):19 fiveconfigure.debug_mode = True20 zcml.load_config('configure.zcml',21 quintagroup.canonicalpath)22 fiveconfigure.debug_mode = False23 24 @classmethod25 def tearDown(cls):26 pass27 28 29 7 def test_suite(): 30 8 return unittest.TestSuite([ 31 9 32 # Unit tests 33 #doctestunit.DocFileSuite(34 #'README.txt', package='quintagroup.canonicalpath',35 #setUp=testing.setUp, tearDown=testing.tearDown),10 # Unit tests for your API 11 doctestunit.DocFileSuite( 12 'README.txt', package='quintagroup.canonicalpath', 13 setUp=testing.setUp, tearDown=testing.tearDown), 36 14 37 15 #doctestunit.DocTestSuite( … … 39 17 # setUp=testing.setUp, tearDown=testing.tearDown), 40 18 41 42 # Integration tests that use PloneTestCase 19 # Integration tests that use ZopeTestCase 43 20 #ztc.ZopeDocFileSuite( 44 21 # 'README.txt', package='quintagroup.canonicalpath', 45 # test_class=TestCase),22 # setUp=testing.setUp, tearDown=testing.tearDown), 46 23 47 24 #ztc.FunctionalDocFileSuite( 48 # 'browser.txt', package='quintagroup.canonicalpath', 49 # test_class=TestCase), 25 # 'browser.txt', package='quintagroup.canonicalpath'), 50 26 51 27 ])
Note: See TracChangeset
for help on using the changeset viewer.