NASA-AMMOS / NASA-AMMOS/AIT-Core

Pytest Collection Warnings

Open
#398 0 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.