gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / dulwich / tests / compat / __init__.py @ 959
History | View | Annotate | Download (1.37 KB)
1 |
# __init__.py -- Compatibility tests for dulwich
|
---|---|
2 |
# Copyright (C) 2010 Jelmer Vernooij <jelmer@samba.org>
|
3 |
#
|
4 |
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
|
5 |
# General Public License as public by the Free Software Foundation; version 2.0
|
6 |
# or (at your option) any later version. You can redistribute it and/or
|
7 |
# modify it under the terms of either of these two licenses.
|
8 |
#
|
9 |
# Unless required by applicable law or agreed to in writing, software
|
10 |
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
# See the License for the specific language governing permissions and
|
13 |
# limitations under the License.
|
14 |
#
|
15 |
# You should have received a copy of the licenses; if not, see
|
16 |
# <http://www.gnu.org/licenses/> for a copy of the GNU General Public License
|
17 |
# and <http://www.apache.org/licenses/LICENSE-2.0> for a copy of the Apache
|
18 |
# License, Version 2.0.
|
19 |
#
|
20 |
|
21 |
"""Compatibility tests for Dulwich."""
|
22 |
|
23 |
import unittest |
24 |
|
25 |
def test_suite(): |
26 |
names = [ |
27 |
'client',
|
28 |
'pack',
|
29 |
'repository',
|
30 |
'server',
|
31 |
'utils',
|
32 |
'web',
|
33 |
] |
34 |
module_names = ['dulwich.tests.compat.test_' + name for name in names] |
35 |
result = unittest.TestSuite() |
36 |
loader = unittest.TestLoader() |
37 |
suite = loader.loadTestsFromNames(module_names) |
38 |
result.addTests(suite) |
39 |
return result
|