@pytest.mark.parametrize('mark_way', ['@pytest.allure.%s',
                                      '@pytest.allure.severity(pytest.allure.severity_level.%s)'
                                      ], ids=['Short', 'Full'])
@pytest.mark.parametrize('name,value', utils.all_of(Severity))
def test_method_severity(report_for, name, value, mark_way):
    report = report_for("""
    import pytest

    %s
    def test_foo():
        pass
    """ % (mark_way % name))

    assert_that(report, has_test_with_severity('test_foo', value))
dataset/ETHPy150Open allure-framework/allure-python/tests/test_severity.py/test_method_severity/original