-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
tests: deprecate test_tools; replace with tests.pytest_plugin #2003
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exactly going in order, but this is the PR that caught my attention and then I got distracted by plumbing some of the weird shit that's left in the example-test code. See line notes. 😁
54ca39f
to
d87f998
Compare
I did some force-push because really its just a few lines. Damn, I hate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hooray for fixing what I mentioned before! 🥳 Though I'm not sure what happened with the module docstring for sopel.test_tools
. I swear it wasn't like this before.
Already did. |
Did you? Without 3f10b01, that first commit introduces mixed indentation (3 & 4 spaces) into the module docstring for |
Pretty sure it's fixed... did I do something wrong? I don't see what you are talking about. I remember the problem, but I think I did fixed and rebased properly. |
Oh, OK. Weird. |
3f10b01
to
b8d5144
Compare
OK, now it should be good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was putting off re-reviewing this because of the line count, but I forgot that it was only waiting for history cleanup. 😅
Description
Since the last refactoring, the only purpose left for
sopel.test_tools
was to provide utility functions forsopel.plugin.example
. Since this feature always requires pytest, I figured that it would be better to nukesopel.test_tools
in Sopel 8 and to move everything still relevant to that plugin.A second round of refactoring in Sopel 8 might be done at some point to rework how pytest is used to discover example test, but that's for another time and certainly not something to do in this PR.
Checklist
make qa
(runsmake quality
andmake test
)