test: convert test/jsonld/test_util.py
to pytest by aucampia · Pull Request #1961 · RDFLib/rdflib (original) (raw)
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.