Mercurial > hg > hg-fastimport
comparison hgext3rd/fastimport/vendor/python_fastimport/tests/__init__.py @ 86:28704a2a7461 vendor/python-fastimport
Import python-fastimport-0.9.8
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 19 Jan 2021 22:56:34 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 85:1f5544a8870b | 86:28704a2a7461 |
|---|---|
| 1 # __init__.py -- The tests for python-fastimport | |
| 2 # Copyright (C) 2010 Canonical, Ltd. | |
| 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, see <http://www.gnu.org/licenses/>. | |
| 17 | |
| 18 """Tests for fastimport.""" | |
| 19 | |
| 20 import unittest | |
| 21 | |
| 22 | |
| 23 def test_suite(): | |
| 24 names = [ | |
| 25 'test_commands', | |
| 26 'test_dates', | |
| 27 'test_errors', | |
| 28 'test_filter_processor', | |
| 29 'test_info_processor', | |
| 30 'test_helpers', | |
| 31 'test_parser', | |
| 32 ] | |
| 33 module_names = ['fastimport.tests.' + name for name in names] | |
| 34 result = unittest.TestSuite() | |
| 35 loader = unittest.TestLoader() | |
| 36 suite = loader.loadTestsFromNames(module_names) | |
| 37 result.addTests(suite) | |
| 38 | |
| 39 return result |
