__init__.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # __init__.py -- Compatibility tests for dulwich
  2. # Copyright (C) 2010 Jelmer Vernooij <jelmer@samba.org>
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License
  6. # as published by the Free Software Foundation; version 2
  7. # of the License or (at your option) any later version of
  8. # the License.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  18. # MA 02110-1301, USA.
  19. """Compatibility tests for Dulwich."""
  20. import unittest
  21. def test_suite():
  22. names = [
  23. 'client',
  24. 'pack',
  25. 'repository',
  26. 'server',
  27. 'utils',
  28. ]
  29. module_names = ['dulwich.tests.compat.test_' + name for name in names]
  30. result = unittest.TestSuite()
  31. loader = unittest.TestLoader()
  32. suite = loader.loadTestsFromNames(module_names)
  33. result.addTests(suite)
  34. return result