:date: 2021-02-20 =========================== Saturday, February 20, 2021 =========================== .. currentmodule:: lino.modlib.uploads To test the new data checkers :class:`UploadChecker` and :class:`UploadsFolderChecker`, I needed to write a test case that uploads some files. I did not do this using Django test client (which might also be interesting and is explained `here `__) but by extending the demo fixtures: :fixture:`demo_bookings` now adds :term:`upload entries ` with dummy pdf files for purchase invoices, and :fixture:`demo3` (in uploads) deletes one of these files (simulating the case where it has actually got lost) and adds an orphaned file to the uploads folder.