bit-team / backintime

Back In Time - An easy-to-use backup tool for GNU/Linux using rsync in the back
https://backintime.readthedocs.io
GNU General Public License v2.0
2.09k stars 204 forks source link

tests: Improve smart remove related unit tests #1821

Open buhtz opened 3 months ago

buhtz commented 3 months ago

Followup of PR #1819 and Issue #1297 .

Refactor and improve the existing unit tests about smart remove. Add new tests if appropriate. Some tests do exist:

/common/test/test_snapshots.py::TestSnapshots.test_smartRemove*()
emtiu commented 3 months ago

It's my impression that the existing unittests actually assert the buggy behavior that will be fixed by #1819. But I will need to take a pen and paper and carefully make sure I understood it right :)