jrnl/tests/unit
Micah Jerome Ellison 4a7057c038
Refactor --template code (#1711)
* Move path concerns to path.py and template concerns to editor.py -- BDD tests are failing
* Move path-related constants from config.py to path.py
* Mock get_templates_path in its new calling file
* Mediate template arg vs. config in controller then read template text in editor and unify those two use cases.
Some tests still failing
* Fix test whose message had changed
* poe format
* Refactor for easier unit testing and add unit tests
* Use path strings instead of Path objects in return values to prevent side effects that caused unit tests to fail on some platforms
* poe format
* Attempt to bypass getcwd errors in CI with patch
* Consistently use strings for paths instead of some strings and some pathlib.Path
* Keep pathlib within a function for readability
* fix for ruamel.yaml versions >=0.17.22
* Run poe format

---------

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2023-05-20 16:13:24 -07:00
..
test_color.py Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
test_config_file.py Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
test_controller.py Allow combinations of --change-time, --delete, and --edit while correctly counting the number of entries affected (#1669) 2023-03-25 12:32:25 -07:00
test_editor.py Refactor --template code (#1711) 2023-05-20 16:13:24 -07:00
test_export.py Allow combinations of --change-time, --delete, and --edit while correctly counting the number of entries affected (#1669) 2023-03-25 12:32:25 -07:00
test_install.py Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
test_journals_folder_journal.py Only read text files that look like entries when opening folder journal (#1697) 2023-04-29 15:49:41 -07:00
test_os_compat.py Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
test_output.py Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
test_override.py Allow combinations of --change-time, --delete, and --edit while correctly counting the number of entries affected (#1669) 2023-03-25 12:32:25 -07:00
test_parse_args.py Allow combinations of --change-time, --delete, and --edit while correctly counting the number of entries affected (#1669) 2023-03-25 12:32:25 -07:00
test_path.py Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
test_time.py Only read text files that look like entries when opening folder journal (#1697) 2023-04-29 15:49:41 -07:00