-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Added utils.helpers.effective_message_type #826
Conversation
…of message as a string from an update or message.
…of message as a string from an update or message.
I rebased on master. Two things I would like to see on this. |
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.
Tests for all occurencies (no type, and an update passed instead of a message)
And please revert the param line in test_message
@JosXa what is the status for this? |
@Eldinnie I don't have much time atm. Hope to get to all my open issues end of the week |
@JosXa 👍 |
Made changes as requested. Question remains: Can/should we do something about the cyclic import (see |
# Conflicts: # telegram/utils/helpers.py
Integration tests fail because of flood timeouts etc. PR lgtm. |
Codecov Report
@@ Coverage Diff @@
## master #826 +/- ##
==========================================
- Coverage 91.83% 91.64% -0.19%
==========================================
Files 103 103
Lines 4052 4070 +18
Branches 639 645 +6
==========================================
+ Hits 3721 3730 +9
- Misses 193 198 +5
- Partials 138 142 +4
|
Coverage is not 100% because this case is never tested: |
I've added a TODO tag in the helpers file where cyclic imports would happen if I didn't put the import statements inside of the method. This should be fixed before merging.