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.
11 lines
131 B
Python
11 lines
131 B
Python
class ExtractError(Exception):
|
|
pass
|
|
|
|
|
|
class BankError(ExtractError):
|
|
pass
|
|
|
|
|
|
class CredentialsError(ExtractError):
|
|
pass
|