On Thu, Oct 20, 2016 at 12:33 PM Ronny Pfannschmidt < opensou...@ronnypfannschmidt.de> wrote:
I'm still not getting how that fits with the collection of *tests*... consider this module: # contents of test_foo.py from pytest_blocker import Blocker @Blocker(123) def test_foo(): pass fist that usage is wrong, a *mark* object in my proposal is neither usable as decorator, nor aware of mark mechanism, it can literally be any object a *mark* is orthogonal to the process of marking, mixing those 2 concepts just creates a huge mess after collection you have the test items, those have all the markers, from the markers of test items one can infer the markers used in the collected tests Oh I see, my bad. You mean this then: from pytest_blocker import Blocker @pytest.mark(Blocker(123)) def test_foo(): pass
_______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev