Ignore:
Timestamp:
22 Dec 2014, 16:42:50 (10 years ago)
Author:
Henrik Bettermann
Message:

Make EXPORTER_NAMES tuples customizable. We have many new subobject classes in custom packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_customer.py

    r12006 r12297  
    3131from zope.schema.interfaces import RequiredMissing
    3232from waeup.ikoba.interfaces import IExtFileStore, IFileStoreNameChooser
    33 from waeup.ikoba.customers.export import EXPORTER_NAMES
    3433from waeup.ikoba.customers.customer import (
    3534    Customer, CustomerFactory, handle_customer_removed, path_from_custid)
    3635from waeup.ikoba.customers.interfaces import (
    37     ICustomer, ICustomerNavigation)
     36    ICustomer, ICustomerNavigation, ICustomersUtils)
    3837from waeup.ikoba.customers.tests.test_batching import CustomerImportExportSetup
    3938from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase
     
    136135
    137136        # The customer data were put into CSV files
    138         for name in EXPORTER_NAMES:
     137        for name in getUtility(ICustomersUtils).EXPORTER_NAMES:
    139138            csv_path = os.path.join(del_dir, '%s.csv' % name)
    140139            self.assertTrue(os.path.isfile(csv_path))
Note: See TracChangeset for help on using the changeset viewer.