jrnl/tests/data/journals
Micah Jerome Ellison 95836a7dd1
Only read text files that look like entries when opening folder journal (#1697)
* Add text file that should be ignored to basic test folder journal. Makes tons of tests fail
* Add additional files that should be ignored by FolderJournal
* Ignore all files in folder journal except year/month/day.txt
* Completely remake get_files in FolderJournal:
- move get_files into FolderJournal class and add underscore prefix
- create iterables to get for year/month folders and day files
- make year/month/day file reading strict: only exact expected months and days out of all possible months and days
* Restore accidentally-deleted self.sort() line
* Use match instead of string comparison to be os-agnostic
* Explicitly declare static methods
* Filter with glob first for max performance
* Explicitly check for valid dates in FolderJournal and add unit test
* Remove unneeded jrnl import
* Clean up method comment and add type hints
* Add is_valid_date unit test
* Elucidate comment

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2023-04-29 15:49:41 -07:00
..
basic_dayone.dayone/entries Rename features directory to data 2021-07-03 15:49:18 -07:00
basic_folder Only read text files that look like entries when opening folder journal (#1697) 2023-04-29 15:49:41 -07:00
bug153.dayone/entries Rename features directory to data 2021-07-03 15:49:18 -07:00
bug780.dayone/entries Rename features directory to data 2021-07-03 15:49:18 -07:00
dayone.dayone/entries Rename features directory to data 2021-07-03 15:49:18 -07:00
dayone_empty.dayone/entries Rename features directory to data 2021-07-03 15:49:18 -07:00
empty_folder Rename features directory to data 2021-07-03 15:49:18 -07:00
basic_encrypted.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
basic_onefile.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
brackets.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
deletion.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
deletion_filters.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
encrypted.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
encrypted_jrnl-1-9-5.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
little_endian_dates.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
markdown-headings-335.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
mostlyreadabledates.journal Add unreadable date test 2021-07-03 15:49:18 -07:00
multiline-tags.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
multiline.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
simple.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
simple_jrnl-1-9-5.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
simple_jrnl-1-9-5_little_endian_dates.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
tags-216.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
tags-237.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
tags.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
unreadabledates.journal Rename features directory to data 2021-07-03 15:49:18 -07:00
work.journal Rename features directory to data 2021-07-03 15:49:18 -07:00