| 123456789101112131415161718192021222324252627282930313233343536373839 |
- # -*- 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.useProxy)
- print(conf.rawProxy)
- assert isinstance(conf.fetchers, list)
- print(conf.fetchers)
- for _ in range(10):
- print(conf.fetchers)
- sleep(5)
- if __name__ == '__main__':
- testConfig()
|