Changeset 6743 for main


Ignore:
Timestamp:
13 Sep 2011, 09:32:46 (13 years ago)
Author:
uli
Message:

More usage of logger-aware testing components.
Remove unnecessary imports/testsuite registrations.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/utils/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_batching.py

    r6273 r6743  
    2525import shutil
    2626import tempfile
    27 import unittest
    2827from zope import schema
    29 from zope.app.testing.functional import FunctionalTestCase
    3028from zope.component import provideUtility
    3129from zope.component.factory import Factory
    32 from zope.component.hooks import setSite, clearSite
     30from zope.component.hooks import clearSite
    3331from zope.component.interfaces import IFactory
    3432from zope.interface import Interface, implements
    3533from waeup.sirp.app import University
    36 from waeup.sirp.testing import FunctionalLayer, doctestsuite_for_module
    37 from waeup.sirp.utils.helpers import attrs_to_fields
     34from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    3835
    3936optionflags = (
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_converters.py

    r6279 r6743  
    2424"""
    2525import datetime
    26 import os
    2726import shutil
    2827import tempfile
    29 import unittest
    3028from zope import schema
    31 from zope.app.testing.functional import FunctionalTestCase
    3229from zope.component import provideUtility
    3330from zope.component.factory import Factory
    34 from zope.component.hooks import setSite, clearSite
     31from zope.component.hooks import clearSite
    3532from zope.component.interfaces import IFactory
    3633from zope.formlib import form
    3734from zope.interface import (
    3835    Interface, implements, invariant, Invalid, implementedBy)
    39 from zope.interface.verify import verifyClass, verifyObject
    4036
    4137from waeup.sirp.app import University
    42 from waeup.sirp.testing import FunctionalLayer, doctestsuite_for_module
     38from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
     39from waeup.sirp.university import Faculty
    4340from waeup.sirp.utils.converters import IObjectConverter
    4441from waeup.sirp.utils.helpers import attrs_to_fields
     
    339336        assert data['num_cars'] == 1
    340337        return
    341 
    342 
    343 def test_suite():
    344     suite = unittest.TestSuite()
    345     for testcase in [
    346         ConverterTests,
    347         ]:
    348         suite.addTest(unittest.TestLoader().loadTestsFromTestCase(
    349                 testcase
    350                 )
    351         )
    352     return suite
    353 
Note: See TracChangeset for help on using the changeset viewer.