central transactions table
This commit is contained in:
@@ -7,6 +7,7 @@ from polyfactory.fields import Use
|
||||
|
||||
from src.models.b4w import B4wExport
|
||||
from src.models.comdirect import ComdirectCreditCard, ComdirectDepot, ComdirectGiro
|
||||
from src.models.transactions import Transaction
|
||||
|
||||
DEFAULT_CATEGORY = "root_category:parent_category:leaf_category"
|
||||
|
||||
@@ -98,3 +99,13 @@ class ComdirectDepotFactory(ModelFactory[ComdirectDepot]):
|
||||
date_val = Use(_german_date)
|
||||
num = Use(_amount_eur)
|
||||
spot_price = Use(_amount_eur)
|
||||
|
||||
|
||||
class TransactionFactory(ModelFactory[Transaction]):
|
||||
__faker__ = Faker("de_DE")
|
||||
__use_examples__ = True
|
||||
|
||||
account_iban = Use(_iban)
|
||||
text = Use(_sentence)
|
||||
other_name = Use(_names)
|
||||
other_iban = Use(_iban_or_none)
|
||||
|
||||
Reference in New Issue
Block a user