pytest-dev / pytest-dev/unittest2pytest
Rewrite function names from camelCase to snake_case
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 141
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the conversion path for unittest.py test methods and determine how pytest names are produced. Done means camel-cased methods such as testThing become test_thing, while existing unittest-to-pytest behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100