As far as I know, maintain-views.py, maintain-meta_p.py and maintain_replica_indexes.py were never tested locally but always directly against a live wiki replica database.
This task is to track the required refactor to make it possible to run the scripts against a local database.
We should also add a basic Tox configuration to run automated tests.
Running the automated tests on the CI for operations/puppet is probably going to be more difficult, because they will require a MariaDB
container they can connect to, and I don't know how to run that in Jenkins/Zuul. We could consider migrating these scripts to a GitLab repo.