1
# Copyright (C) 2005 by Canonical Ltd
2
# -*- coding: utf-8 -*-
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 2 of the License, or
7
# (at your option) any later version.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
"""Branch implementation tests for bzr.
21
These test the conformance of all the branch variations to the expected API.
22
Specific tests for individual formats are in the tests/test_branch file
23
rather than in tests/branch_implementations/*.py.
26
from bzrlib.branch import BranchTestProviderAdapter, BzrBranchFormat
27
from bzrlib.tests import adapt_modules, TestLoader, TestSuite
28
from bzrlib.tests import TestCaseInTempDir, BzrTestBase
29
from bzrlib.transport.local import LocalRelpathServer
33
test_branch_implementations = [
34
'bzrlib.tests.branch_implementations.test_branch',
36
adapter = BranchTestProviderAdapter(
38
# None here will cause a readonly decorator to be created
39
# by the TestCaseWithTransport.get_readonly_transport method.
41
BzrBranchFormat._formats.values())
43
adapt_modules(test_branch_implementations, adapter, loader, result)