__init__.py 757 B

1234567891011121314151617181920212223
  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-debug.log', level=logging.INFO, format='%(message)s')
  12. from .misc import MiscTestCase
  13. from . import uploader
  14. # from .serializer import ResourceTestCase as SerializerTestCase
  15. # from .utils import UtilsTestCase
  16. miscsuite = unittest.TestLoader().loadTestsFromTestCase(MiscTestCase)
  17. uploadersuite = unittest.TestLoader().loadTestsFromModule(uploader)
  18. return unittest.TestSuite([miscsuite, uploadersuite])