Adds a new table, nordigen, with the access and refresh token, along with their validity. The Export/Import test would raise an integrety with the use of a real DB and the export of the transaction IDs, so add a try-except block to the database session to catch the error and re-raise an ImportError.
9 lines
214 B
Python
9 lines
214 B
Python
from pfbudget.db.model import AccountType, Bank, NordigenBank
|
|
|
|
|
|
checking = Bank(
|
|
"bank", "BANK", AccountType.checking, NordigenBank("bank_id", "requisition_id")
|
|
)
|
|
|
|
cc = Bank("cc", "CC", AccountType.MASTERCARD)
|