canutin-desktop icon indicating copy to clipboard operation
canutin-desktop copied to clipboard

Tests: create a copy of Unmigratable vault, then delete it after the test runs

Open fmaclen opened this issue 1 year ago • 0 comments

We have a corrupt Unmigratable.vault we use to test that when a vault isn't migratable an error is displayed to the user. But when the test runs it modifies this Unmigratable vault causing a Git diff.

These vaults need to remain in the repo (can't add them to.gitignore) so a solution could be to create temporary copies of the files, run the test, and then during the test cleanup delete such files.

fmaclen avatar May 06 '24 16:05 fmaclen