mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
a034317c87
Logging should be configured by the application, not by libraries it uses. Libraries should just get a logger and log to it. Fixes #21
9 lines
315 B
Python
9 lines
315 B
Python
import logging
|
|
import unittest
|
|
from tests.test_bot import BotTest
|
|
|
|
if __name__ == '__main__':
|
|
logging.basicConfig(
|
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
|
testsuite = unittest.TestLoader().loadTestsFromTestCase(BotTest)
|
|
unittest.TextTestRunner(verbosity=1).run(testsuite)
|