Thanks to this patch, we don't have to reload pagure.lib.tasks and pagure.lib.tasks_services before every test case, so we don't run into the issue where Celery leaks redis connection sockets on disconnecting.
pagure.lib.tasks
pagure.lib.tasks_services
FTR, I did run the whole test suite with this and saw no errors except the PEP-8 test failure (which cannot caused by this patch, since this patch only changes a file under tests/)
tests/
Looks fine to me, it's similar to what I had come up with :-)
rebased onto 3cb5290aef76a3844501aa561ae80fdafa6238da
Thanks for this :)
Pull-Request has been merged by pingou
Thanks to this patch, we don't have to reload
pagure.lib.tasksandpagure.lib.tasks_servicesbefore every test case, so we don't run into the issue where Celery leaks redis connection sockets on disconnecting.