tests.py 622 B

12345678910111213141516171819202122232425
  1. '''
  2. Created on Jan 8, 2020
  3. @author: deeejas
  4. '''
  5. import unittest
  6. import game_bot
  7. from time import sleep
  8. class myTest(unittest.TestCase):
  9. @unittest.skip('reason')
  10. def runTest(self):
  11. try:
  12. assert 6 == 6
  13. # exc_logger.info('True')
  14. game_bot.selector_logger.info('True')
  15. except AssertionError as exc:
  16. game_bot.exc_logger.exception(exc)
  17. def test_driver(self):
  18. bot = game_bot.fb.FacebookBot(executable_path='/home/deeejas/git/fbook_bot/chromedriver', visible=True)
  19. bot.get("https://mbasic.facebook.com")
  20. sleep(5)
  21. unittest.main()