Replace deprecated unittest method aliases
ProprietaryReplace deprecated unittest.TestCase method aliases like assertEquals with their modern equivalents like assertEqual. These aliases were removed in Python 3.11/3.12. Only fires where the receiver's type resolves to unittest.TestCase or a subclass.
org. openrewrite. python. migrate. ReplaceUnittestDeprecatedAliasesmod run . --recipe= org. openrewrite. python. migrate. ReplaceUnittestDeprecatedAliasesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.