Plex plugin to to play various online streams (mostly Latvian).

__main__.py 623B

123456789101112131415161718
  1. import os
  2. import unittest
  3. def load_tests(loader, standard_tests, pattern):
  4. # top level directory cached on loader instance
  5. this_dir = os.path.dirname(__file__)
  6. pattern = pattern or "test*.py"
  7. # We are inside unittest.test.testmock, so the top-level is three notches up
  8. top_level_dir = os.path.dirname(os.path.dirname(os.path.dirname(this_dir)))
  9. package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
  10. top_level_dir=top_level_dir)
  11. standard_tests.addTests(package_tests)
  12. return standard_tests
  13. if __name__ == '__main__':
  14. unittest.main()