Skip to content

Test helpers

components.payment_gateway.subcomponents.payments.models.tests.factories

PaymentRequestFactory

Bases: AlanBaseFactory[PaymentRequest]

Meta

model class-attribute instance-attribute
model = PaymentRequest

account class-attribute instance-attribute

account = SubFactory(AccountFactory)

amount class-attribute instance-attribute

amount = Faker('random_int', min=1, max=100000)

currency class-attribute instance-attribute

currency = Faker('random_element', elements=get_values())

external_id class-attribute instance-attribute

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

reference class-attribute instance-attribute

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

type class-attribute instance-attribute

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

workspace_key class-attribute instance-attribute

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