~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/__init__.py

  • Committer: Jamie Wilkinson
  • Date: 2006-07-18 23:59:52 UTC
  • mfrom: (1868 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1874.
  • Revision ID: jaq@spacepants.org-20060718235952-1e362401a7858958
merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2005, 2006 by Canonical Ltd
2
 
# -*- coding: utf-8 -*-
3
 
 
 
2
#
4
3
# This program is free software; you can redistribute it and/or modify
5
4
# it under the terms of the GNU General Public License as published by
6
5
# the Free Software Foundation; either version 2 of the License, or
7
6
# (at your option) any later version.
8
 
 
 
7
#
9
8
# This program is distributed in the hope that it will be useful,
10
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
11
# GNU General Public License for more details.
13
 
 
 
12
#
14
13
# You should have received a copy of the GNU General Public License
15
14
# along with this program; if not, write to the Free Software
16
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
25
import sys
27
26
 
28
27
from bzrlib.tests import (
 
28
                          adapt_modules,
29
29
                          TestCaseWithTransport,
30
30
                          TestSuite,
31
31
                          TestLoader,
 
32
                          iter_suite_tests,
32
33
                          )
 
34
from bzrlib.tests.EncodingAdapter import EncodingTestAdapter
33
35
import bzrlib.ui as ui
34
36
 
35
37
 
40
42
                     'bzrlib.tests.blackbox.test_aliases',
41
43
                     'bzrlib.tests.blackbox.test_ancestry',
42
44
                     'bzrlib.tests.blackbox.test_annotate',
 
45
                     'bzrlib.tests.blackbox.test_branch',
43
46
                     'bzrlib.tests.blackbox.test_break_lock',
44
47
                     'bzrlib.tests.blackbox.test_bound_branches',
 
48
                     'bzrlib.tests.blackbox.test_bundle',
45
49
                     'bzrlib.tests.blackbox.test_cat',
46
50
                     'bzrlib.tests.blackbox.test_checkout',
 
51
                     'bzrlib.tests.blackbox.test_command_encoding',
47
52
                     'bzrlib.tests.blackbox.test_commit',
48
53
                     'bzrlib.tests.blackbox.test_conflicts',
49
54
                     'bzrlib.tests.blackbox.test_diff',
 
55
                     'bzrlib.tests.blackbox.test_exceptions',
50
56
                     'bzrlib.tests.blackbox.test_export',
51
57
                     'bzrlib.tests.blackbox.test_find_merge_base',
52
58
                     'bzrlib.tests.blackbox.test_help',
 
59
                     'bzrlib.tests.blackbox.test_ignore',
53
60
                     'bzrlib.tests.blackbox.test_ignored',
54
61
                     'bzrlib.tests.blackbox.test_info',
55
62
                     'bzrlib.tests.blackbox.test_init',
57
64
                     'bzrlib.tests.blackbox.test_logformats',
58
65
                     'bzrlib.tests.blackbox.test_merge',
59
66
                     'bzrlib.tests.blackbox.test_missing',
 
67
                     'bzrlib.tests.blackbox.test_mv',
60
68
                     'bzrlib.tests.blackbox.test_outside_wt',
61
69
                     'bzrlib.tests.blackbox.test_pull',
62
70
                     'bzrlib.tests.blackbox.test_push',
63
71
                     'bzrlib.tests.blackbox.test_reconcile',
 
72
                     'bzrlib.tests.blackbox.test_remerge',
 
73
                     'bzrlib.tests.blackbox.test_remove',
64
74
                     'bzrlib.tests.blackbox.test_re_sign',
65
75
                     'bzrlib.tests.blackbox.test_revert',
66
76
                     'bzrlib.tests.blackbox.test_revno',
 
77
                     'bzrlib.tests.blackbox.test_revision_history',
67
78
                     'bzrlib.tests.blackbox.test_revision_info',
68
79
                     'bzrlib.tests.blackbox.test_selftest',
69
80
                     'bzrlib.tests.blackbox.test_shared_repository',
74
85
                     'bzrlib.tests.blackbox.test_update',
75
86
                     'bzrlib.tests.blackbox.test_upgrade',
76
87
                     'bzrlib.tests.blackbox.test_versioning',
 
88
                     'bzrlib.tests.blackbox.test_whoami',
77
89
                     ]
 
90
    test_encodings = [
 
91
        'bzrlib.tests.blackbox.test_non_ascii',
 
92
    ]
78
93
 
79
94
    loader = TestLoader()
80
 
    return loader.loadTestsFromModuleNames(testmod_names)
 
95
    suite = loader.loadTestsFromModuleNames(testmod_names) 
 
96
 
 
97
    adapter = EncodingTestAdapter()
 
98
    adapt_modules(test_encodings, adapter, loader, suite)
 
99
 
 
100
    return suite
81
101
 
82
102
 
83
103
class ExternalBase(TestCaseWithTransport):