We recently completed a small video demonstrating how to clean up an ugly set of if-else conditionals by refactoring it to use polymorphism instead. All the while we use pytest as a safety net to catch errors....
pytest
1 Article
1