pytest-dev / pytest-dev/unittest2pytest
Convert @unittest.skipIf / @unittest.skipUnless
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 141
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Hello. I've been using this nice tool to convert psutil and pyftpdlib code bases. One of the few things that are left out from the conversion are @unittest.skipIf and @unittest.skipUnless decorators, which can be converted to @pytest.mark.skipif(condition, reason="reason"). It would be nice to have this added.
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
No source files or tests are named. Start by locating the converter's handling of unittest decorators, then add coverage for skipIf and skipUnless and verify conversion to pytest.mark.skipif with the condition and reason.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100