products/CPSUid

changeset 63:d9705ab78067

Same fix as in CPSRelation: now pass the true profile path
author Georges Racinet on purity.racinet.fr <georges@racinet.fr>
date Sun, 23 Oct 2011 11:49:29 +0200
parents 48866af58119
children 6964ea0c3b17
files tests/test_exportimport.py
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/tests/test_exportimport.py
     1.2 +++ b/tests/test_exportimport.py
     1.3 @@ -16,10 +16,10 @@
     1.4  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     1.5  # 02111-1307, USA.
     1.6  #
     1.7 -# $Id$
     1.8  """Tests for the CPScore export/import mechanism
     1.9  """
    1.10  
    1.11 +import os
    1.12  import unittest
    1.13  from Testing import ZopeTestCase
    1.14  
    1.15 @@ -27,6 +27,8 @@
    1.16  
    1.17  ZopeTestCase.installProduct('CPSUid')
    1.18  
    1.19 +TEST_PROFILES_PATH = os.path.join(os.path.split(__file__)[0], 'profiles')
    1.20 +
    1.21  class ExportImportTest(ExportImportTestCase):
    1.22  
    1.23      def beforeTearDown(self):
    1.24 @@ -55,8 +57,8 @@
    1.25              'import_steps.xml',
    1.26              'uidgenerators.xml',
    1.27              ]
    1.28 -        self._checkExportProfile('CPSUid/tests/profiles/default_export/',
    1.29 -                                 toc_list)
    1.30 +        self._checkExportProfile(os.path.join(TEST_PROFILES_PATH,
    1.31 +                                              'default_export'), toc_list)
    1.32  
    1.33  
    1.34      def test_basic_import(self):
    1.35 @@ -92,7 +94,7 @@
    1.36              'uidgenerators.xml',
    1.37              'uidgenerators/generator.xml',
    1.38             ]
    1.39 -        self._checkExportProfile('CPSUid/tests/profiles/basic',
    1.40 +        self._checkExportProfile(os.path.join(TEST_PROFILES_PATH, 'basic'),
    1.41                                   toc_list)
    1.42  
    1.43