forked from jhao104/proxy_pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestConfigHandler.py
More file actions
38 lines (31 loc) · 812 Bytes
/
testConfigHandler.py
File metadata and controls
38 lines (31 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- 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()