-
-
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
loader: test coverage #1424
loader: test coverage #1424
Conversation
I'll fix CI build tomorrow, I forgot to check flake8, my bad! Edit: done! Resume testing... 😄 |
38b9608
to
d6b5022
Compare
Just took a peek because I was curious (and noticed I hadn't labeled this yet). The most exciting thing I see is Coveralls' current check status: "Coverage increased (+1.06%) to 43.248%" 🎉 |
@dgw I need to check that. There are a lot of interesting things in there! |
d6b5022
to
4300b06
Compare
4300b06
to
4acb6b5
Compare
@dgw you can remove the WIP tag and have a look. I bet you can merge that one eyes closed. 😉 |
0856072
to
c9b749b
Compare
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 really expected to put an Approve on this immediately, but I guess there are a couple things I'd like to see changed after all.
It's really thorough overall, and I like where it's at. It's really almost there!
Tested cases: * test function has new attributes, * these attributes all have a default value, * test the `commands` and `nickname_commands` attribute, * test the `rule` attribute, * test the `event` atribute, Missing cases are: * doc, * and example. Still better than nothing!
c9b749b
to
ee32151
Compare
Should be better now @dgw and thanks for the review again! Edit: apparently not. I forgot something somewhere... :| |
The config's default value for "nick" could be changed, breaking any tests that rely on this value. To prevent that, the tmpconfig fixture now provides a test nick.
ee32151
to
2895155
Compare
The
sopel.loader
module is responsible for loading Sopel Module (as in, "plugins" for Sopel), so it's quite critical.So I added unit-tests, and change as few code as possible.
There is one function that I didn't test, because I want to rework it later:
enumerate_modules
. This function does too many things, and relies on too many global or hard-coded variables. This must be changed.So, for now, here is a good increase in coverage for the project.
Initial description: