pytest-dev / pytest-dev/unittest2pytest

Rewrite function names from camelCase to snake_case

Open
#43 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.