import2ledger/tests
Brett Smith db59d2fc8c hooks.ledger_entry: Look up templates dynamically.
If there's a 'ledger entry' key in the entry data, use that value as the
name of the template to load.  Thanks to this, nbpy2017 could collapse
multiple importers into one.

Otherwise, build a default template name based on the importer source, and
try to use that.

All the configuration names now end with "ledger entry" instead of starting
with "template".  This makes it clearer what they're for, in case we
support other kinds of output templates in the future.

I ended up changing the names of some of the importers so the default
template name was nice, rather than specifying template names for all of
them, to reduce the amount of name discrepancies across the codebase.
2017-12-31 18:52:30 -05:00
..
data hooks.ledger_entry: Look up templates dynamically. 2017-12-31 18:52:30 -05:00
__init__.py main: Set up a decimal context that safely handles currency. 2017-12-31 10:06:57 -05:00
test_config.py hooks.ledger_entry: Bring in all Ledger-specific code. 2017-12-31 17:29:14 -05:00
test_hook_ledger_entry.py hooks.ledger_entry: Look up templates dynamically. 2017-12-31 18:52:30 -05:00
test_hooks.py hooks.ledger_entry: New hook to output Ledger entries. 2017-12-31 12:35:20 -05:00
test_importers.py util: Rename to strparse. 2017-12-19 06:42:05 -05:00
test_main.py main: Provide template variables about the file being imported. 2017-12-19 09:13:44 -05:00