__init__.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # __init__.py -- Compatibility tests for dulwich
  2. # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
  5. # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
  6. # General Public License as published by the Free Software Foundation; version 2.0
  7. # or (at your option) any later version. You can redistribute it and/or
  8. # modify it under the terms of either of these two licenses.
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # You should have received a copy of the licenses; if not, see
  17. # <http://www.gnu.org/licenses/> for a copy of the GNU General Public License
  18. # and <http://www.apache.org/licenses/LICENSE-2.0> for a copy of the Apache
  19. # License, Version 2.0.
  20. #
  21. """Compatibility tests for Dulwich."""
  22. import unittest
  23. def test_suite() -> unittest.TestSuite:
  24. names = [
  25. "bitmap",
  26. "bundle",
  27. "check_ignore",
  28. "client",
  29. "commit_graph",
  30. "dumb",
  31. "index",
  32. "lfs",
  33. "midx",
  34. "pack",
  35. "patch",
  36. "porcelain",
  37. "reftable",
  38. "repository",
  39. "server",
  40. "utils",
  41. "web",
  42. ]
  43. module_names = ["tests.compat.test_" + name for name in names]
  44. result = unittest.TestSuite()
  45. loader = unittest.TestLoader()
  46. suite = loader.loadTestsFromNames(module_names)
  47. result.addTests(suite)
  48. return result