def test_scenario_comments(request):
    @scenario(
        'comments.feature',
        'Comments'
    )
    def test():
        pass

    @scenario(
        'comments.feature',
        'Strings that are not comments'
    )
    def test2():
        pass

    test(request)
    test2(request)
Test comments inside scenario.
dataset/ETHPy150Open pytest-dev/pytest-bdd/tests/feature/test_scenario.py/test_scenario_comments