unittest2pytest icon indicating copy to clipboard operation
unittest2pytest copied to clipboard

Rewrite function names from camelCase to snake_case

Open The-Compiler opened this issue 6 years ago • 1 comments

When writing unittest.py tests, often the test methods are camel-cased, e.g. def testThing(self): .... With pytest, the usual convention is snake_case (as per pep8), i.e. def test_thing():.

It'd be nice if unittest2pytest could rename the functions accordingly.

The-Compiler avatar Jan 27 '20 08:01 The-Compiler

borrowed this idea for pytestify!

dannysepler avatar Dec 28 '21 17:12 dannysepler