Ignore:
Timestamp:
12 Apr 2010, 14:28:51 (17 years ago)
Author:
uli
Message:

Update all unit tests that use the ZCA to run inside the new unit test layer.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/converters.txt

    r5012 r5140  
    99
    1010
    11 :Test-Layer: unit
    12 
    13 As converters are registered as adapters, we have to grok the package
    14 first:
    15 
    16     >>> import grok
    17     >>> grok.testing.grok('waeup')
     11.. :doctest:
     12.. :layer: waeup.sirp.testing.WAeUPSIRPUnitTestLayer
     13
    1814
    1915Constants
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.txt

    r4920 r5140  
    66Helper functions for the WAeUP SRP.
    77
    8 :Test-Layer: unit
     8.. :doctest:
    99
    1010:func:`removeFileOrDirectory`
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/importexport.txt

    r5011 r5140  
    55exportable and importable.
    66
    7 :Test-Layer: unit
     7.. :doctest:
     8.. :layer: waeup.sirp.testing.WAeUPSIRPUnitTestLayer
    89
    910As imports and exports of data are a cruical point when doing updates
    … …  
    1314Exports and imports are implemented using the Zope component framework
    1415capabilities. This means we need some adapters and utilities, which we
    15 register, by grokking the whole package::
    16 
    17     >>> import grok
    18     >>> grok.testing.grok('waeup')
     16register, by grokking the whole package. This is done on startup
     17automatically, but in doctests (like this one) it is done by the
     18testlayer.
    1919
    2020Furthermore we need something to import/export. As only pickable
Note: See TracChangeset for help on using the changeset viewer.