jrnl/tests/unit
Ricardo Ruiz 8957ceb74d
Fix -contains to allow multiple terms with "OR" logic unless -and is added (#1890)
* Store multiple -contains arguments (OR default).

Allow multiple occurrences of the -contains argument
to be stored in a list. Previously, only the last occurrence was
considered. Additionally, the behavior has been modified to default to
OR logic, meaning that if multiple -contains arguments are provided,
entries matching any of them will be included in the results.

* Solved issue #1877 "-and" flag with multiple instances of the -contains option.

* Run poe format

* Fix unit test for contains to allow list instead of single value

* Add BDD tests for multiple contains with and without -and

* Black version updated.

* Revert pyproject.toml to appease poetry

---------

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2024-05-20 21:16:33 -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 Fix -contains to allow multiple terms with "OR" logic unless -and is added (#1890) 2024-05-20 21:16:33 -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