Skip to content

Test helpers

components.payment_gateway.subcomponents.banking_documents.models.tests.factories

SepaMandateFactory

Bases: AlanBaseFactory[SepaMandate]

Meta

model class-attribute instance-attribute
model = SepaMandate

account_holder class-attribute instance-attribute

account_holder = SubFactory(AccountHolderFactory)

debtor_country class-attribute instance-attribute

debtor_country = 'FRA'

debtor_iban class-attribute instance-attribute

debtor_iban = Faker('iban')

debtor_name class-attribute instance-attribute

debtor_name = 'Thomas Dudouet'

external_id class-attribute instance-attribute

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

issued_at class-attribute instance-attribute

issued_at = LazyFunction(lambda: now())

provider class-attribute instance-attribute

provider = swan

sepa_creditor_identifier class-attribute instance-attribute

sepa_creditor_identifier = 'FR1234567890'

unique_mandate_reference class-attribute instance-attribute

unique_mandate_reference = str(Faker('uuid4'))

SepaMandateStatusLogFactory

Bases: AlanBaseFactory[SepaMandateStatusLog]

Meta

model class-attribute instance-attribute
model = SepaMandateStatusLog

sepa_mandate class-attribute instance-attribute

sepa_mandate = SubFactory(SepaMandateFactory)

status class-attribute instance-attribute

status = enabled