cumulusci.tasks.bulkdata.tests package

Submodules

class cumulusci.tasks.bulkdata.tests.dummy_data_factory.AccountFactory[source]

Bases: factory.alchemy.SQLAlchemyModelFactory

BillingStreet = 'Baker St.'
Name = <factory.declarations.Sequence object>
id = <factory.declarations.Sequence object>
class cumulusci.tasks.bulkdata.tests.dummy_data_factory.ContactFactory[source]

Bases: factory.alchemy.SQLAlchemyModelFactory

AccountId = <factory.declarations.LazyAttribute object>
Email = <factory.faker.Faker object>
FirstName = <factory.faker.Faker object>
LastName = <factory.faker.Faker object>
MailingStreet = 'Baker St.'
account = <factory.declarations.SubFactory object>
id = <factory.declarations.Sequence object>
class cumulusci.tasks.bulkdata.tests.dummy_data_factory.GenerateDummyData(project_config, task_config, org_config=None, flow=None, name=None, stepnum=None, **kwargs)[source]

Bases: cumulusci.tasks.bulkdata.factory_utils.ModuleDataFactory

Generate data based on test mapping.yml

make_records(num_records, factories, current_batch_num)[source]

Subclass to make db records using factories.

class cumulusci.tasks.bulkdata.tests.mock_data_factory_without_mapping.GenerateDummyData(project_config, task_config, org_config=None, flow=None, name=None, stepnum=None, **kwargs)[source]

Bases: cumulusci.tasks.bulkdata.base_generate_data_task.BaseGenerateDataTask

Generate data based on test mapping.yml

generate_data(**kwargs)[source]

Abstract methods for base classes to really generate the data into an open session.

class cumulusci.tasks.bulkdata.tests.test_utils.TestBatching(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_batching_no_remainder()[source]
test_batching_with_remainder()[source]
class cumulusci.tasks.bulkdata.tests.test_utils.TestCreateTable(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_create_table_legacy_oid_mapping()[source]
test_create_table_modern_id_mapping()[source]
cumulusci.tasks.bulkdata.tests.test_utils.create_db_file(filename)[source]

Create a SQLite file from a filename

Module contents