ut_dep.py 475 B

123456789101112131415161718192021
  1. #!/usr/bin/env python3
  2. """
  3. test.unit_tests_d.ut_dep: dependency unit tests for the MMGen Node Tools
  4. Test whether dependencies are installed and functional.
  5. No data verification is performed.
  6. """
  7. from ..include.common import vmsg,imsg
  8. from mmgen.color import yellow
  9. class unit_tests:
  10. def yahooquery(self,name,ut):
  11. try:
  12. from yahooquery import Ticker
  13. return True
  14. except ImportError:
  15. imsg(yellow('Unable to import Ticker from yahooquery'))
  16. return False