testConfig.py 792 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. """
  3. -------------------------------------------------
  4. File Name: testGetConfig
  5. Description : test all function in GetConfig.py
  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 Config.ConfigGetter import config
  15. # noinspection PyPep8Naming
  16. def testConfig():
  17. """
  18. :return:
  19. """
  20. print(config.db_type)
  21. print(config.db_name)
  22. print(config.db_host)
  23. print(config.db_port)
  24. print(config.db_password)
  25. assert isinstance(config.proxy_getter_functions, list)
  26. print(config.proxy_getter_functions)
  27. if __name__ == '__main__':
  28. testConfig()