Changeset 1699 in products
- Timestamp:
- Feb 10, 2010 5:33:40 PM (14 years ago)
- Location:
- quintagroup.canonicalpath/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
r1697 r1699 5 5 from Testing import ZopeTestCase as ztc 6 6 7 from Products.Five import zcml 8 from Products.Five import fiveconfigure 9 from Products.PloneTestCase import PloneTestCase as ptc 10 from Products.PloneTestCase.layer import PloneSite 11 ptc.setupPloneSite() 12 13 import quintagroup.canonicalpath 14 15 class TestCase(ptc.PloneTestCase): 16 class layer(PloneSite): 17 @classmethod 18 def setUp(cls): 19 fiveconfigure.debug_mode = True 20 zcml.load_config('configure.zcml', 21 quintagroup.canonicalpath) 22 fiveconfigure.debug_mode = False 23 24 @classmethod 25 def tearDown(cls): 26 pass 27 28 7 29 def test_suite(): 8 30 return unittest.TestSuite([ 9 31 10 # Unit tests for your API11 doctestunit.DocFileSuite(12 'README.txt', package='quintagroup.canonicalpath',13 setUp=testing.setUp, tearDown=testing.tearDown),32 # Unit tests 33 #doctestunit.DocFileSuite( 34 # 'README.txt', package='quintagroup.canonicalpath', 35 # setUp=testing.setUp, tearDown=testing.tearDown), 14 36 15 37 #doctestunit.DocTestSuite( … … 17 39 # setUp=testing.setUp, tearDown=testing.tearDown), 18 40 19 # Integration tests that use ZopeTestCase 41 42 # Integration tests that use PloneTestCase 20 43 #ztc.ZopeDocFileSuite( 21 44 # 'README.txt', package='quintagroup.canonicalpath', 22 # setUp=testing.setUp, tearDown=testing.tearDown),45 # test_class=TestCase), 23 46 24 47 #ztc.FunctionalDocFileSuite( 25 # 'browser.txt', package='quintagroup.canonicalpath'), 48 # 'browser.txt', package='quintagroup.canonicalpath', 49 # test_class=TestCase), 26 50 27 51 ]) -
quintagroup.canonicalpath/trunk/setup.py
r1698 r1699 4 4 version = '0.2' 5 5 6 tests_require=['zope.testing'] 6 7 setup(name='quintagroup.canonicalpath', 7 8 version=version, … … 26 27 'setuptools', 27 28 ], 29 tests_require=tests_require, 30 extras_require=dict(tests=tests_require), 31 test_suite = 'quintagroup.canonicalpath.tests.test_suite', 28 32 entry_points=""" 29 33 # -*- Entry points: -*-
Note: See TracChangeset
for help on using the changeset viewer.