Some of the scripts (e.g. unused_images) cannot be tested locally as they rely on access to commonswiki_p on labsdb.
Introducing a thin commonswiki db (likely only needs the page table) as one of the docket build options would allow for more confident development of these scripts.