Having a comprehension unit testing allows for peace of mind refactoring. Changed the PSD2Client constructor and extract method to accept credentials and banks, respectively. Create Exception tree for the Extract module. Adds mocks to the NordigenClient requests' methods.
10 lines
200 B
Python
10 lines
200 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from pfbudget.db.model import Transaction
|
|
|
|
|
|
class Extract(ABC):
|
|
@abstractmethod
|
|
def extract(self) -> list[Transaction]:
|
|
return NotImplementedError
|