Adding tests

This commit is contained in:
Leandro Toledo 2015-07-07 17:33:59 -03:00
parent 4aaab11a7b
commit 1b97d99357
2 changed files with 1 additions and 8 deletions

View file

@ -1,5 +0,0 @@
import unittest
if __name__ == '__main__':
testsuite = unittest.TestLoader().discover('.')
unittest.TextTestRunner(verbosity=1).run(testsuite)

View file

@ -5,10 +5,8 @@ import os
import telegram
import unittest
from token import TOKEN
@unittest.skipIf(not TOKEN, "No tokens provided")
@unittest.skipIf(not os.environ.get('TOKEN'), "No tokens provided")
class BotTest(unittest.TestCase):
def setUp(self):
bot = telegram.Bot(token=os.environ.get('TOKEN'))