def tagTest(tag, comment=None):
 return getattr(pytest.mark, tag)

def tagTest ( tag , comment = None ) : return getattr ( pytest . mark , tag )
a decorator for tagging a test class or test method with the given tag string tag: test tag string comment: reason for the tag; string; optional examples: @tagtest class clustertests: def testswarmwithaggregation: pass def testswarmwithoutaggregation: pass or class misctests: def testoneplusone: pass @tagtest def testswarm: pass .