[pytest-dev] Proposal: python namespacign for markings/marker objects
Ronny Pfannschmidt
rpfannsc at redhat.com
Wed Sep 7 05:38:54 EDT 2016
Hi all,
while trying to turn various internal markers of a work project
into public plugins, i noticed a very plain problems - different other
plugins used the same generic marker name for different purposes/intents
such a flat namespace really doesn't scale
as such i would like to propose having marker types and objects as
importable objects
for example
import pytest
from pytest_bugzilla import Blocker
@pytest.mark(Blocker(123))
def test_fun():
pass
that way we can do both, reuse python name-spacing *and* use more
meaningful objects for markings
-- Ronny
--
Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Eric Shander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20160907/29fc63e1/attachment.html>
More information about the pytest-dev
mailing list