pytest-dev / unittest2pytest

helps rewriting Python `unittest` test-cases into `pytest` test-cases
GNU General Public License v3.0
128 stars 27 forks source link

Rewrite function names from camelCase to snake_case #43

Open The-Compiler opened 4 years ago

The-Compiler commented 4 years ago

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.

dannysepler commented 2 years ago

borrowed this idea for pytestify!