We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow unconditionally skipped tests.
Examples of bad code:
@pytest.mark.skip(reason='some reason') def test_skipped(): ...
@pytest.mark.skipif(True, reason='some reason') def test_skipped(): ...
def test_skipped(): pytest.skip('some reason')
def test_skipped(): if True: pytest.skip('some reason')
NB: this should not be reported as a violation:
def test_conditionally_skipped(): if some_condition: pytest.skip('some reason')
no-disabled-tests
The text was updated successfully, but these errors were encountered:
What about skipif(True)?
skipif(True)
Sorry, something went wrong.
Thanks @sobolevn, I've added it to the description
No branches or pull requests
Rule request
Description
Disallow unconditionally skipped tests.
Examples of bad code:
NB: this should not be reported as a violation:
Rationale
no-disabled-tests
The text was updated successfully, but these errors were encountered: