testConfigHandler.py 812 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- coding: utf-8 -*-
  2. """
  3. -------------------------------------------------
  4. File Name: testGetConfig
  5. Description : testGetConfig
  6. Author : J_hao
  7. date: 2017/7/31
  8. -------------------------------------------------
  9. Change Activity:
  10. 2017/7/31:
  11. -------------------------------------------------
  12. """
  13. __author__ = 'J_hao'
  14. from handler.configHandler import ConfigHandler
  15. from time import sleep
  16. def testConfig():
  17. """
  18. :return:
  19. """
  20. conf = ConfigHandler()
  21. print(conf.dbConn)
  22. print(conf.serverPort)
  23. print(conf.serverHost)
  24. print(conf.tableName)
  25. assert isinstance(conf.fetchers, list)
  26. print(conf.fetchers)
  27. for _ in range(10):
  28. print(conf.fetchers)
  29. sleep(5)
  30. if __name__ == '__main__':
  31. testConfig()