NASA-AMMOS / NASA-AMMOS/AIT-Core
Pytest Collection Warnings
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56
- Forks
- 35
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 3
Description
AIT-Core/tests/ait/core/__init__.py:44
/home/avazquez/bin/test/AIT-Deploy/AIT-Core/tests/ait/core/__init__.py:44: PytestCollectionWarning: cannot collect test class 'TestFile' because it has a __init__ constructor (from: tests/ait/core/test_cfg.py)
class TestFile:
This is caused by Pytest attempting to collect and run TestFile as a test class.
Need to rename this class.
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 in tests/ait/core/init.py around line 44 and inspect its reference from tests/ait/core/test_cfg.py to confirm why pytest treats TestFile as a test class. Apply the requested class rename consistently, then run the relevant pytest tests; done means the PytestCollectionWarning no longer appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100