Files @ 281d6fed47b7
Branch filter:

Location: NPO-Accounting/experimental-accounting-api/bin/client

Joar Wandborg
[test] Added unit tests

- Moved the TransactionNotFound exception to a more appropriate place.
- Changed the serialization for AccountingExceptions
- Override the Exception.__init__ method in AccountingException
- Added __eq__ methods to accounting.models.*
- Catch the TransactionNotFound exception in transaction_get and return a
404 instead. This could be improved, perhaps in the jsonify_exceptions
decorator so that all endpoints that raise a TransactionNotFound
exception automatically return a 404.
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python3
import sys

sys.path.append('./')

from accounting.client import main

if __name__ == '__main__':
    sys.exit(main())