[pytest-dev] Proposal: python namespacign for markings/marker objects

Bruno Oliveira nicoddemus at gmail.com
Thu Oct 13 19:30:29 EDT 2016

Hey Ronny,

On Wed, Sep 7, 2016 at 10:45 AM Ronny Pfannschmidt <rpfannsc at redhat.com>

> such a flat namespace really doesn't scale
> as such i would like to propose having marker types and objects as
> importable objects

I'm not against adding support for it, but I wouldn't change it to be the
"recommended way" to do it: breaks backward compatibility and having more
than one way to do it might be confusing to users. Perhaps mentioning it in
some advanced session in the docs.

> import pytest
> from pytest_bugzilla import Blocker
> @pytest.mark(Blocker(123))
> def test_fun():
>   pass

What do you think would be the requirements for the Blocker object?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20161013/5d7a21c0/attachment.html>

More information about the pytest-dev mailing list