Skip to content
New issue

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

Remove pytest-subtest #1973

Merged

Conversation

aucampia
Copy link
Member

Summary of changes

unittest.TestCase.subTest is a unittest construct that should be
avoided in favor of pytest parameterization.

pytest-subtest is a pytest plugin that adds support for
unittest.TestCase.subTest to pytest.

This plugin was needed in the past due to the use of subTest, but all uses of
subTest has been replaced with pytest parameterization recently.

The removal of this plugin is desirable as it bumps heads with other
plugins that are useful and generally subTest should be avoided due to
limitations in annotating this with skip of xfail.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

`unittest.TestCase.subTest` is a `unittest` construct that should be
avoided in favor of pytest parameterization.

`pytest-subtest` is a pytest plugin that adds support for
`unittest.TestCase.subTest` to pytest.

This plugin was needed in the past due to the use of `subTest`, but all uses of
`subTest` has been replaced with pytest parameterization recently.

The removal of this plugin is desirable as it bumps heads with other
plugins that are useful and generally `subTest` should be avoided due to
limitations in annotating this with skip of xfail.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.521% when pulling 1e4a8dd on aucampia:iwana-20220526T1422-remove_subtest into 4ded2eb on RDFLib:master.

@aucampia aucampia marked this pull request as ready for review May 26, 2022 12:59
@aucampia aucampia requested a review from a team June 4, 2022 18:22
@aucampia aucampia added the review wanted This indicates that the PR is ready for review label Jun 4, 2022
@aucampia aucampia merged commit 6448432 into RDFLib:master Jun 5, 2022
@ghost ghost removed the review wanted This indicates that the PR is ready for review label Jun 8, 2022
@aucampia aucampia deleted the iwana-20220526T1422-remove_subtest branch June 23, 2022 19:43
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.

None yet

2 participants