| 1234567891011121314151617181920212223242526272829303132333435363738 |
- # -*- coding: utf-8 -*-
- """
- -------------------------------------------------
- File Name: testGetConfig
- Description : testGetConfig
- Author : J_hao
- date: 2017/7/31
- -------------------------------------------------
- Change Activity:
- 2017/7/31:
- -------------------------------------------------
- """
- __author__ = 'J_hao'
- from handler.configHandler import ConfigHandler
- from time import sleep
- def testConfig():
- """
- :return:
- """
- conf = ConfigHandler()
- print(conf.dbConn)
- print(conf.serverPort)
- print(conf.serverHost)
- print(conf.tableName)
- assert isinstance(conf.fetchers, list)
- print(conf.fetchers)
- for _ in range(10):
- print(conf.fetchers)
- sleep(5)
- if __name__ == '__main__':
- testConfig()
|