Skip to content

Test helpers

components.payment_gateway.subcomponents.accounts.models.tests.factories

AccountFactory

Bases: AlanBaseFactory[Account]

Meta

model class-attribute instance-attribute
model = Account

description class-attribute instance-attribute

description = Faker('text', max_nb_chars=100)

external_id class-attribute instance-attribute

external_id = Faker('random_string', length=16)

reference class-attribute instance-attribute

reference = Faker('random_string', length=32)

workspace_key class-attribute instance-attribute

workspace_key = Faker('random_string', length=16)

AccountHolderFactory

Bases: AlanBaseFactory[AccountHolder]

Meta

model class-attribute instance-attribute
model = AccountHolder

description class-attribute instance-attribute

description = Faker('text', max_nb_chars=100)

external_id class-attribute instance-attribute

external_id = Faker('random_string', length=16)

reference class-attribute instance-attribute

reference = Faker('random_string', length=32)

workspace_key class-attribute instance-attribute

workspace_key = Faker('random_string', length=16)