Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(60)  |  Call(60)  |  Derive(0)  |  Import(0)

src/e/r/erp5-HEAD/product/ERP5TioSafe/tests/testSaleOrderERP5Synchronization.py   erp5(Download)
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([
        getattr(self.prestashop, module)
        for module in ['person_module', 'product_module', 'sale_order_module']
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([
        getattr(self.prestashop, module)
        for module in ['person_module', 'product_module', 'sale_order_module']
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([
        getattr(self.prestashop, module)
        for module in ['person_module', 'product_module', 'sale_order_module']
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([
        getattr(self.prestashop, module)
        for module in ['person_module', 'product_module', 'sale_order_module']
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([
        getattr(self.prestashop, module)
        for module in ['person_module', 'product_module', 'sale_order_module']

src/e/r/erp5-HEAD/product/ERP5TioSafe/tests/testProductERP5Synchronization.py   erp5(Download)
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.product_module.contentValues()), 2)
    product = self.product_module.contentValues()[0]
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.product_module.contentValues()), 2)
    product = self.product_module.contentValues()[0]
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.product_module.contentValues()), 2)
    product = self.product_module.contentValues()[0]
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.product_module.contentValues()), 2)
    product = self.product_module.contentValues()[0]
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.product_module.contentValues()), 1)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.product_module.contentValues()), 5)
    # Check the product 'Stylo'

src/e/r/erp5-HEAD/product/ERP5TioSafe/tests/testPersonERP5Synchronization.py   erp5(Download)
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.person_module.contentValues()), 2)
    person = self.person_module.contentValues()[0]
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.person_module.contentValues()), 2)
    person = self.person_module.contentValues()[0]
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.person_module.contentValues()), 2)
    person = self.person_module.contentValues()[0]
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.person_module.contentValues()), 1)
 
    # Run the sync of persons
    self.assertEqual(len(self.person_module.contentValues()), 1)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.person_module.contentValues()), 4)
    # Move the persons as draft, validated and invalidated state

src/e/r/erp5-HEAD/product/ERP5TioSafe/tests/testProductPrestashopSynchronization.py   erp5(Download)
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.prestashop.product_module()), 0)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.prestashop.product_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.prestashop.product_module()), 0)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.prestashop.product_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.prestashop.product_module()), 0)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.prestashop.product_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.prestashop.product_module()), 0)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.prestashop.product_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of products and check product's data after sync
    self.assertEqual(len(self.prestashop.product_module()), 0)
    self.loadSync([self.prestashop.product_module, ])
    self.assertEqual(len(self.prestashop.product_module()), 4)
    # Check the XML schema and the fixed point

src/e/r/erp5-HEAD/product/ERP5TioSafe/tests/testPersonPrestashopSynchronization.py   erp5(Download)
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.prestashop.person_module()), 0)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.prestashop.person_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.prestashop.person_module()), 0)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.prestashop.person_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of persons and check person's data after sync
    self.assertEqual(len(self.prestashop.person_module()), 0)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.prestashop.person_module()), 1)
    # Check the XML schema and the fixed point
    # Run the sync of persons
    self.assertEqual(len(self.prestashop.person_module()), 0)
    self.loadSync([self.prestashop.person_module, ])
    self.assertEqual(len(self.prestashop.person_module()), 1)
    # Remove the persons in ERP5 and check that after sync in prestashop
    self.person_module.manage_delObjects([person.getId(), ])
    self.loadSync([self.prestashop.person_module, ])