diff --git a/tests/test_parser.py b/tests/test_parser.py index b05ac49..10d6f92 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -83,3 +83,17 @@ def test_parse_rst_special_characters(): u'
String with special character like é
\n' u'\n' ) + +def test_parse_markers(): + _mod_markers = ['pytest.mark.e2e', 'pytest.mark.destructive'] + _class_markers = ['pytest.mark.on_prem_provisioning', "pytest.mark.usefixtures('cleandir')"] + _test_markers = [ + "pytest.mark.parametrize('something', ['a', 'b'])", + "pytest.mark.skipif(not settings.robottelo.REPOS_HOSTING_URL)", + "pytest.mark.tier1" + ] + _all_markers = [_mod_markers, _class_markers, _test_markers] + + expected = 'e2e, destructive, on_prem_provisioning, tier1' + + assert parser.parse_markers(_all_markers) == expected