pytest-dev / pytest-dev/unittest2pytest
Rewrite assertCountEqual
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 141
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual
It's implemented with collections.Counter objects. https://github.com/python/cpython/blob/c96d00e88ead8f99bb6aa1357928ac4545d9287c/Lib/unittest/case.py#L1161
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
Start with the unittest.TestCase.assertCountEqual documentation and the linked CPython Lib/unittest/case.py implementation around line 1161, then inspect how unittest2pytest handles other assertion rewrites. Done means this assertion is rewritten consistently with the project's existing conversion behavior and its tests pass.
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
- 35/100