jrnl/tests/bdd/features
Jonathan Wren 3c923ae943
Allow combinations of --change-time, --delete, and --edit while correctly counting the number of entries affected (#1669)
* Remove search mode conditional that added explicit tag search behavior
* Fix failing change-time test by using same method signature as base journal class
* Fix user input mock - was not appropriately checking return value
* Clean up controller
  - streamline `run` function in `controller.py`
  - add debug logging
  - fix unnecessary import of Journal class (only needed for typing)
  - standardize summary display across different actions
* Add currently-failing test conditions for count messages when changing time and deleting
* Don't show summary if no entries found and prevent extra line break when no entries found by short-circuiting display method
* Track found entry count and remove incorrect modified stat logic
* Track journal entry deletion consistently
* Remove unneeded exception when editor is empty and fix test that was testing incorrect message
* Correct entry edit modified count test
* Track modification of entries with --change-time
* Preserve existing behavior when editor is empty but make the message more clear
* Reconcile tests with new error message when clearing editor in edit mode
* Add found/modified counts to edit tests
* Add tests for found count with -n equivalent argument
* Test combinations of found/deleted messages when using --delete
* Add tests for counting combinations of action arguments (change-time, edit, delete) and for change-time counts. Some are failing and should be investigated
* Remove extraneous comment in test
* Track added/deleted counts in a register in the Journal class instead of attempting to infer it via controller counting
* Add encrypted to more tests
* Fix merge conflict typo
* Change 'write mode' -> 'append mode' in more places

---------

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2023-03-25 12:32:25 -07:00
..
actions.feature 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
build.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
change_time.feature 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
config_file.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
core.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
datetime.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
delete.feature 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
encrypt.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
file_storage.feature Prompt to include colors in config when first running jrnl (#1687) 2023-02-25 15:30:25 -08:00
format.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
import.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
install.feature Add message with config location and docs location when installation is complete (#1695) 2023-03-04 12:45:37 -08:00
multiple_journals.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
override.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
password.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
search.feature 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
star.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
tag.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
template.feature Add ability to use template with --template (#1667) 2023-03-25 11:47:00 -07:00
upgrade.feature Update copyright notices for 2023 (#1660) 2023-01-07 13:39:07 -08:00
write.feature 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