import2ledger/tests
Ben Sturmfels 61b9683743
Add !date and !decimal YAML constructors to avoid unsafe parsing mode
At some point the defaults for pyyaml were switched to safe parsing mode, so
that the previous arbitrary Python YAML tags like
"!!python/object/apply:datetime.date [2017, 9, 1]" no longer work. A better way
is to define our own explicit constructors to avoid unsafe mode.
2025-09-19 17:21:47 +10:00
..
data Add !date and !decimal YAML constructors to avoid unsafe parsing mode 2025-09-19 17:21:47 +10: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: Clean up whitespace in strings. 2020-01-10 13:27:34 -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 Add !date and !decimal YAML constructors to avoid unsafe parsing mode 2025-09-19 17:21:47 +10:00
test_main.py main: Provide template variables about the file being imported. 2017-12-19 09:13:44 -05:00