Save empty journal on install instead of just creating a zero-length file (#1690)

* Add failing test for issue #1493
* Write journal upon creation instead of just creating 0-length file
* Fix test to accommodate current password mocking form
This commit is contained in:
Micah Jerome Ellison 2023-02-25 12:29:43 -08:00 committed by GitHub
parent 592e7bcf27
commit 3c87111710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View file

@ -123,6 +123,7 @@ class Journal:
},
)
)
self.write()
text = self._load(filename)
text = self._decrypt(text)