def contacts_and_accounts(self, size, tenant): # create various contacts ContactFactory.create_batch(size, tenant=tenant) # create accounts with zero contact AccountFactory.create_batch(size, tenant=tenant) # create account with multi contacts function_factory(tenant).create_batch(size, account=AccountFactory(tenant=tenant))
def contacts_and_accounts(self, size, tenant): # create various contacts ContactFactory.create_batch(size, tenant=tenant) # create accounts with zero contact AccountFactory.create_batch(size, tenant=tenant) # create account with multi contacts function_factory(tenant).create_batch( size, account=AccountFactory(tenant=tenant)) # create account with assigned_to function_factory(tenant).create_batch( size, account=AccountFactory(tenant=tenant, assigned_to=LilyUserFactory(tenant=tenant)))
def contacts_contact(self, **kwargs): kwargs.update({"size": kwargs.get("size", self.batch_size), "tenant": kwargs.get("tenant", self.tenant)}) contacts = ContactFactory.create_batch(**kwargs) self.stdout.write("Done with contacts_contact.") return contacts
def contacts_contact(self, **kwargs): kwargs.update({ 'size': kwargs.get('size', self.batch_size), 'tenant': kwargs.get('tenant', self.tenant), }) contacts = ContactFactory.create_batch(**kwargs) self.stdout.write('Done with contacts_contact.') return contacts
def contacts_and_accounts(self, size, tenant): # create various contacts ContactFactory.create_batch(size, tenant=tenant) # create accounts with zero contact AccountFactory.create_batch(size, tenant=tenant) # create account with multi contacts FunctionFactory.create_batch( size, tenant=tenant, account=AccountFactory(tenant=tenant), ) # create account with assigned_to FunctionFactory.create_batch( size, tenant=tenant, account=AccountFactory( tenant=tenant, assigned_to=LilyUserFactory(tenant=tenant) ), )