Skip to content

Test helpers

components.payment_gateway.subcomponents.merchants.models.tests.factories

MerchantInfoFactory

Bases: AlanBaseFactory

Meta

model class-attribute instance-attribute
model = MerchantInfo

acquirer_id class-attribute instance-attribute

acquirer_id = Faker('random_string', length=6)

city class-attribute instance-attribute

city = Faker('city')

country class-attribute instance-attribute

country = Faker('country')

mcc class-attribute instance-attribute

mcc = Faker('numerify', text='####')

merchant_id class-attribute instance-attribute

merchant_id = Faker('random_string', length=9)

name class-attribute instance-attribute

name = Faker('company')

postal_code class-attribute instance-attribute

postal_code = Faker('numerify', text='#####')