GitHub
07/14/2025, 6:02 PMTestSuite to prevent a pytest test collection warning
Issue created by edgarrmondragon
### Singer SDK Version
0.47.4
### Is this a regression?
• Yes
### Python Version
NA
### Bug scope
Other
### Operating System
No response
### Description
An example of this warning is in
/home/runner/work/target-postgres/target-postgres/.tox/3.13/lib/python3.13/site-packages/singer_sdk/testing/suites.py:52: PytestCollectionWarning: cannot collect test class 'TestSuite' because it has a __init__ constructor (from: target_postgres/tests/test_sdk.py)
from https://github.com/MeltanoLabs/target-postgres/actions/runs/16274195410/job/45949008538?pr=198#step936.
---
sdk/singer_sdk/testing/suites.py
Lines 52 to 57 in</meltano/sdk/commit/89d8afc0236072fdcae780dc7fbd6ea4ebc0a64a|89d8afc>
| @dataclass |
| --------------------------------- |
| class TestSuite(t.Generic[T]): |
| """Test Suite container class.""" |
| |
| kind: str |
| tests: list[type[T]] |
### Link to Slack/Linen
No response
meltano/sdkGitHub
07/15/2025, 6:50 PMTestSuite to prevent a pytest test collection warning
Issue closed as completed by edgarrmondragon
meltano/sdk