conservancy_beancount/tests
Brett Smith 1fc9363b26 data: Add is_credit() and is_debit() methods to Posting.
The main motivation for this change is to make sure that higher-level
code deals with the fact that self.units.number can be None, and has
an easy way to do so.

I'm not sure all our code is *currently* doing the right thing for this
case, because I'm not sure it will ever actually come up. It's possible
that earlier Beancount plugins fill in decimal amounts for postings
that are originally loaded with self.units.number=None. I'll have to see
later whether this case comes up in reality, and then deal with it if so.
For now the safest strategy seems to be that most code should operate
when self.units.number is None.
2020-03-31 10:07:25 -04:00
..
repository/Projects meta_project: Start hook. 2020-03-20 12:08:10 -04:00
userconfig config: Add Config.rt_credentials method. 2020-03-23 15:19:15 -04:00
__init__.py Initial commit: license, setup.py, gitignore, skeleton structure. 2020-03-05 09:33:23 -05:00
conftest.py config: Add Config.cache_dir_path method. 2020-03-25 15:15:38 -04:00
test_config.py config: Add Config.payment_threshold() method. 2020-03-29 10:21:37 -04:00
test_data_account.py data: Add Account.is_checking() method. 2020-03-30 15:01:25 -04:00
test_data_iter_postings.py data: iter_postings uses Account. 2020-03-17 18:06:43 -04:00
test_data_metadata.py tests: Test Metadata.get_links() with whitespace on one side. 2020-03-28 13:38:18 -04:00
test_data_posting.py data: Add is_credit() and is_debit() methods to Posting. 2020-03-31 10:07:25 -04:00
test_data_posting_meta.py data: Add Metadata class. 2020-03-28 13:35:38 -04:00
test_meta_approval.py meta_approval: Start hook. 2020-03-29 11:14:51 -04:00
test_meta_entity.py errors: Redo InvalidMetadataError. 2020-03-28 09:47:40 -04:00
test_meta_expense_allocation.py plugin: User configuration is passed to hooks on initialization. 2020-03-19 17:23:27 -04:00
test_meta_income_type.py plugin: User configuration is passed to hooks on initialization. 2020-03-19 17:23:27 -04:00
test_meta_invoice.py meta_receipt: Start hook. 2020-03-28 22:19:49 -04:00
test_meta_project.py meta_project: Start hook. 2020-03-20 12:08:10 -04:00
test_meta_receipt.py meta_receipt: Accept paypal-id in lieu of receipt for PayPal credits. 2020-03-30 15:48:19 -04:00
test_meta_repo_links.py plugin: Link checkers use Metadata class. 2020-03-28 13:36:56 -04:00
test_meta_rt_links.py plugin: Link checkers use Metadata class. 2020-03-28 13:36:56 -04:00
test_meta_tax_implication.py plugin: User configuration is passed to hooks on initialization. 2020-03-19 17:23:27 -04:00
test_plugin.py plugin: User configuration is passed to hooks on initialization. 2020-03-19 17:23:27 -04:00
test_rtutil.py rtutil: Add RTLinkCache class to cache links to disk. 2020-03-27 07:35:45 -04:00
testutil.py plugin: Refactor hooks to use new payment-related methods. 2020-03-29 10:30:54 -04:00