Open
Bug 1892056
Opened 4 months ago
Updated 4 months ago
Add a utility or helper function for `test_backup` to simplify BackupResource tests
Categories
(Firefox :: Profile Backup, task, P3)
Firefox
Profile Backup
Tracking
()
NEW
People
(Reporter: kpatenio, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-device-migration])
Throughout our tests, especially within the test_backup
tasks, we repeatedly use the same pattern:
- Instantiate a
BackupResource
type - Create unique directories for the source path and staging path
- Establish mock files and/or stubs (ex. SQLite db connections)
- Call
backup
- Run assertions to ensure files are correctly copied
We could make things simpler and reduce code duplication by creating a helper function or utility that does this behaviour for us in backup/tests/xpcshell/head.js.
Severity: -- → N/A
Priority: -- → P3
Whiteboard: [fidefe-device-migration]
Updated•4 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•