Skip to content
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 tests for all sync methods on telegram #85

Merged
merged 1 commit into from
Oct 12, 2017

Conversation

leportella
Copy link
Collaborator

Do not close all #51 because I don't know how to test async methods.

@nicoddemus
Copy link
Collaborator

For testing the async methods you can take a look at pytest-asyncio.

def test_telegram_engine_define_new_mode():
'''Make sure TelegramEngine supports new modes.'''
engine = TelegramEngine(token='', mode='else')
assert engine.mode == 'else'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, what should be tested is if no mode is passed to TelegramEngine, its default mode will be polling, right?

@rougeth rougeth merged commit bb5bd66 into master Oct 12, 2017
@rougeth rougeth deleted the add-some-telegram-tests branch October 12, 2017 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants