-
Notifications
You must be signed in to change notification settings - Fork 103
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
labhub.py: Add error message when nick is empty #642
Conversation
Hey @abhishalya, TravisCI finished with status TravisBuddy Request Identifier: 3756e790-ded6-11e8-9517-3f3b7d8cc1c8 |
70334a3
to
c0f0a89
Compare
I apologize for not checking the code locally. WIll not push until checked :) |
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.
You'll also need to write tests along with cleaning up the code :)
@nvzard Sure, is this the correct approach though? Do I need to make any changes in the statements? |
c0f0a89
to
5323328
Compare
5323328
to
c790b15
Compare
Ping @nvzard @meetmangukiya |
c790b15
to
2c02447
Compare
Btw InvalidLinkBear is complaining: plugins/ship_it.py
| 14| ········'http://i.imgur.com/DPVM1.png',
| | [NORMAL] InvalidLinkBear:
| | Broken link - unable to connect to http://i.imgur.com/DPVM1.png (HTTP Error: 404)
|
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.
We have to test if the error messages are being sent whenever the nick is not available. Create a new test function test_empty_nick
where you create a message that has an empty nick, and make errbot use that mocked empty nick(am not sure how you can do this. Maybe @nvzard knows?).
Also, you are involved with both @jayvdb and @nvzard, so if they suggested something different, go with that.
1125087
to
9b2e2c7
Compare
9b2e2c7
to
0e36cab
Compare
0e36cab
to
4860ff6
Compare
All of the backends do not have `nick` attribute. Hence an error will be shown whenever nick is empty. Closes coala#632
4860ff6
to
4c61393
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.
Good Work 👍
ack 4c61393 |
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
All of the backends do not have
nick
attribute.Hence an error will be shown whenever nick is empty.
Closes #632
Reviewers Checklist
botcmd
andre_botcmd
decorators.