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

test: convert test/jsonld/test_util.py to pytest #1961

Merged

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented May 21, 2022

Summary of changes

Not the most straight forward conversion, but it simplifies it somewhat.

Main reason for doing this is to remove the use of unittest.subTest as
we need pytest-subtest to process that with pytest and that dependency
is causing some complications in dependency solving for pip sometimes.

Cleaner diff can be obtained by hiding whitespaces: https://github.com/RDFLib/rdflib/pull/1961/files?diff=split&w=1

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.

Not the most straight forward conversion, but it simplifies it somewhat.

Main reason for doing this is to remove the use of unittest.subTest as
we need `pytest-subtest` to process that with pytest and that dependency
is causing some complications in dependency solving for pip sometimes.
@aucampia aucampia force-pushed the iwana-20220521T1529-pytest_jsonld_utils branch from c692bfd to bfb21c3 Compare May 21, 2022 13:31
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.437% when pulling bfb21c3 on aucampia:iwana-20220521T1529-pytest_jsonld_utils into a24586a on RDFLib:master.

@aucampia aucampia marked this pull request as ready for review May 21, 2022 13:50
@aucampia aucampia requested a review from a team May 21, 2022 13:50
@aucampia aucampia added the review wanted This indicates that the PR is ready for review label May 21, 2022
@aucampia aucampia changed the title Convert test/jsonld/test_util.py to pytest test: convert test/jsonld/test_util.py to pytest May 21, 2022
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aucampia aucampia merged commit dd56451 into RDFLib:master May 21, 2022
@ghost ghost removed the review wanted This indicates that the PR is ready for review label Jun 4, 2022
@aucampia aucampia deleted the iwana-20220521T1529-pytest_jsonld_utils branch June 4, 2022 21:53
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