-
Hello, The tests are then selected/deselected in the I looked though the code and it seems like the handling of --collect-only is not done after the collection. Is there another way allowing me to modify the collected result for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hmm, it should work. I just tested it with pytest's built-in One thing that I'd try is change pytest-tagging |
Beta Was this translation helpful? Give feedback.
Hmm, it should work. I just tested it with pytest's built-in
-k
and-m
filters, which are both implemented withpytest_collection_modifyitems
internally, and--collect-only
only shows the filtered ones and the summary line reads34/3551 tests collected (3517 deselected)
.One thing that I'd try is change pytest-tagging
pytest_collection_modifyitems
implementation to not be a hookwrapper, I don't think there is any reason for it to be. I don't think it's related to what you're seeing but worth a try anyway.