Skip to content

Conversation

@ShurikMen
Copy link
Contributor

Issue #374
support pytest 9.0 subtest

import allure
import pytest

@pytest.mark.skipif("pytest.__version__[0] < '9'")
def test_with_subtest(subtests):
   with subtests.test(msg='Some failed subtest'):
       assert False, 'Some error'
   with allure.step('Next step'):
       pass
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant