| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Actually, again, maybe the tests are worth adding when the methods are there, so it might make sense to review this as it is, then hopefully merge, and then we'll add tests with real methods. |
Sorry, something went wrong.
…Created` + change docstring for the module will add tests for `ForumTopic` later on
`TelegramObject`'s `de_json()` will work fine if `None` is passed instead of empty dict
2 tests copied/pasted from another branch still fail
|
This seems ready to be merged if there are no other comments. |
Sorry, something went wrong.
There was a problem hiding this comment.
Now that all 7 forum methods have been implemented upstream, test_forum.py should be updated to test that.
Also we can add filters for the new status messages (ForumTopicCreated, etc). See filters.StatusUpdate as examples on how to add them, it's fairly straightforward.
Sorry, something went wrong.
# Conflicts: # docs/source/telegram.rst # telegram/_message.py
* `icon_color` and `icon_custom_emoji_id` must be optional * remove link to `Message.create_forum_topic` from docstring (there will be no such shortcut)
|
I'm having trouble adding a test for ForumTopicCreated. My idea is that I should create a topic, then get updates, check the last Message and make sure it contains a service message in forum_topic_created attribute with the correct topic name. Somehow it doesn't work though, which maybe depends on how bot fixture works. (I do get service messages, but old ones.) I tried to see how it was done for other classes representing service messages, but tests for classes like VideoChatScheduled, MessageAutoDeleteTimerChanged and others only seem to test slots, equality etc., but not the fact of the service message actually being issued. So I'm struggling to find any relevant examples to follow here :) |
Sorry, something went wrong.
return 'ForumTopic', not bool
| Back | FazBrowse Home | New Git URL |
addresses #3340
ForumTopicClosed, ForumTopicReopened