Closed
Description
Is it possible to deselect a class prefixed with "Test" from collection without renaming it?
The class is imported from several test modules and thus generates several warnings:
====================================== pytest-warning summary ======================================= WC1 /vagrant/publish/marketplace/tests/test_models.py cannot collect test class 'TestPrintProduct' because it has a __init__ constructor WC1 /vagrant/publish/marketplace/tests/test_signals.py cannot collect test class 'TestPrintProduct' because it has a __init__ constructor WC1 /vagrant/publish/salechannels/tests/test_signals.py cannot collect test class 'TestPrintProduct' because it has a __init__ constructor
i've tried the following to no avail:
- the pytest.mark.skip decorator on the class
- setting test = False on the class as attribute
- k flag with "not TestPrintProduct"