def setUp(self): self.datapath = os.path.join(os.path.dirname(__file__), 'data') self.api = MockOpenLMISEndpoint("uri://mock/lmis/endpoint", username='******', password='******') bootstrap_domain(TEST_DOMAIN) delete_all_cases() for product in Product.by_domain(TEST_DOMAIN): product.delete()
def setUp(self): self.datapath = os.path.join(os.path.dirname(__file__), 'data') self.api = MockOpenLMISEndpoint("uri://mock/lmis/endpoint", username='******', password='******') initial_bootstrap(TEST_DOMAIN) bootstrap_domain(TEST_DOMAIN) delete_all_cases() for product in Product.by_domain(TEST_DOMAIN): product.delete()
def bootstrap_domain_task(domain): return bootstrap_domain(domain)
def setUp(self): self.datapath = os.path.join(os.path.dirname(__file__), 'data') initial_bootstrap(TEST_DOMAIN) bootstrap_domain(TEST_DOMAIN) for product in Product.by_domain(TEST_DOMAIN): product.delete()