test_imports.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. __author__ = "Christian Heider Nielsen"
  4. __doc__ = r"""
  5. Created on 01/08/2020
  6. """
  7. __all__ = []
  8. import pytest
  9. def test_import():
  10. import draugr
  11. print(draugr.__version__)
  12. @pytest.mark.skip
  13. def test_import_dlib_utilities():
  14. import draugr.dlib_utilities
  15. print(draugr.dlib_utilities.__author__)
  16. def test_import_torch_utilities():
  17. import draugr.torch_utilities
  18. print(draugr.torch_utilities.__author__)
  19. def test_import_numpy_utilities():
  20. import draugr.numpy_utilities
  21. print(draugr.numpy_utilities.__author__)
  22. def test_import_multiprocessing_utilities():
  23. import draugr.multiprocessing_utilities
  24. print(draugr.multiprocessing_utilities.__author__)
  25. def test_import_pandas_utilities():
  26. import draugr.pandas_utilities
  27. print(draugr.pandas_utilities.__author__)
  28. def test_import_opencv_utilities():
  29. import draugr.opencv_utilities
  30. print(draugr.opencv_utilities.__author__)
  31. def test_import_drawers():
  32. import draugr.drawers
  33. print(draugr.drawers.__author__)
  34. def test_import_writers():
  35. import draugr.writers
  36. print(draugr.writers.__author__)
  37. def test_import_scipy_utilities():
  38. import draugr.scipy_utilities
  39. print(draugr.scipy_utilities.__author__)
  40. @pytest.mark.skip
  41. def test_import_matlab_utilities():
  42. import draugr.matlab_utilities
  43. print(draugr.matlab_utilities.__author__)
  44. @pytest.mark.skip
  45. def test_import_tensorboard_utilities():
  46. import draugr.tensorboard_utilities
  47. print(draugr.tensorboard_utilities.__author__)
  48. def test_import_extensions():
  49. import draugr.extensions
  50. print(draugr.extensions.__author__)
  51. def test_import_metrics():
  52. import draugr.metrics
  53. print(draugr.metrics.__author__)
  54. def test_import_generators():
  55. import draugr.python_utilities.generators
  56. print(draugr.python_utilities.generators.__author__)
  57. def test_import_os_utilities():
  58. import draugr.os_utilities
  59. print(draugr.os_utilities.__author__)
  60. def test_import_python_utilities():
  61. import draugr.python_utilities
  62. print(draugr.python_utilities.__author__)
  63. def test_import_random_utilities():
  64. import draugr.random_utilities
  65. print(draugr.random_utilities.__author__)
  66. def test_import_stopping():
  67. import draugr.stopping
  68. print(draugr.stopping.__author__)
  69. def test_import_visualisation():
  70. import draugr.visualisation
  71. print(draugr.visualisation.__author__)
  72. def test_import_entry_points():
  73. import draugr.entry_points
  74. print(draugr.entry_points.__author__)