Convert namespace tests to pytest by aucampia · Pull Request #1782 · RDFLib/rdflib (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation3 Commits1 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Summary of changes
This change refactors the unittest
based tests for namespaces to
pytest based tests. This is primarily in preparation for adding a
new tests.
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.
My bad, I hadn't spotted this PR and I should have. In merged PR #1788 test/test_namespace.py
has been moved to test/test_namespace/test_namespace.py
Have I been a bit heavy-handed in my approach to the migration of unittests to pytest? I've been refactoring out all of the unittest stuff. Is retaining the unittest class structure a more elegant approach?
Have I been a bit heavy-handed in my approach to the migration of unittests to pytest? I've been refactoring out all of the unittest stuff. Is retaining the unittest class structure a more elegant approach?
Nah, kill all that awful Unittest non-Pythonic code! I admire your diligence in making the change! If I had done the test restructuring, I likely would not have done the refactoring too, but it's better off done.
This change refactors the unittest
based tests for namespaces to
pytest based tests. This is primarily in preparation for adding a
new tests.
My bad, I hadn't spotted this PR and I should have. In merged PR #1788
test/test_namespace.py
has been moved totest/test_namespace/test_namespace.py
@gjhiggins it is fine 😄 I tagged you for review, not because you were moving it, quick enough to rebase.
aucampia deleted the iwana-20220330T2322-test_ns_invalid_uri branch
2 participants