예제 #1
0
 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))
예제 #2
0
 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)))
예제 #3
0
    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
예제 #4
0
    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
예제 #5
0
    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
예제 #6
0
 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)
         ),
     )