__init__.py 809 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. # Copyright (C) 2015-2016 Peter Magnusson <peter@birchroad.net>
  3. """Add tests to include here"""
  4. import unittest
  5. import logging
  6. def get_tests():
  7. """returns the tests to run"""
  8. return full_suite()
  9. def full_suite():
  10. """creates a full suite of tests"""
  11. logging.basicConfig(filename='test.log', level=logging.INFO,
  12. format='%(asctime)s %(levelname)s %(module)s.%(funcName)s %(message)s')
  13. from .misc import MiscTestCase
  14. from . import uploader
  15. # from .serializer import ResourceTestCase as SerializerTestCase
  16. # from .utils import UtilsTestCase
  17. miscsuite = unittest.TestLoader().loadTestsFromTestCase(MiscTestCase)
  18. uploadersuite = unittest.TestLoader().loadTestsFromModule(uploader)
  19. return unittest.TestSuite([miscsuite, uploadersuite])