/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
6614.1.3 by Vincent Ladeuil
Fix assertEquals being deprecated by using assertEqual.
1
# Copyright (C) 2005-2013, 2016 Canonical Ltd
1831.1.1 by Martin Pool
[merge] remove default ignore list & update
2
#
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
1831.1.1 by Martin Pool
[merge] remove default ignore list & update
7
#
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
1831.1.1 by Martin Pool
[merge] remove default ignore list & update
12
#
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
4183.7.1 by Sabin Iacob
update FSF mailing address
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
16
17
18
"""Black-box tests for bzr.
19
20
These check that it behaves properly when it's invoked through the regular
3943.8.1 by Marius Kruger
remove all trailing whitespace from bzr source
21
command-line interface. This doesn't actually run a new interpreter but
6622.1.29 by Jelmer Vernooij
Fix some more tests.
22
rather starts again from the run_brz function.
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
23
"""
24
1692.3.3 by Robert Collins
Get run_bzr in tests to always assign a new, clean ui factory.
25
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
26
from breezy import tests
1570.1.2 by Robert Collins
Import bzrtools' 'fix' command as 'bzr reconcile.'
27
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
28
6625.1.5 by Martin
Drop custom load_tests implementation and use unittest signature
29
def load_tests(loader, basic_tests, pattern):
3302.9.6 by Vincent Ladeuil
bzrlib.tests.blackbox switched from test_suite() to load_tests().
30
    suite = loader.suiteClass()
31
    # add the tests for this module
32
    suite.addTests(basic_tests)
33
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
34
    prefix = 'breezy.tests.blackbox.'
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
35
    testmod_names = [
7143.15.2 by Jelmer Vernooij
Run autopep8.
36
        'test_add',
37
        'test_added',
38
        'test_alias',
39
        'test_aliases',
40
        'test_ancestry',
41
        'test_annotate',
42
        'test_bisect',
7331.3.1 by Jelmer Vernooij
Add some tests with big files.
43
        'test_big_file',
7143.15.2 by Jelmer Vernooij
Run autopep8.
44
        'test_branch',
45
        'test_branches',
46
        'test_break_lock',
47
        'test_bound_branches',
48
        'test_bundle_info',
49
        'test_cat',
50
        'test_cat_revision',
51
        'test_check',
52
        'test_checkout',
53
        'test_clean_tree',
7490.13.1 by Jelmer Vernooij
Add clone subcommand.
54
        'test_clone',
7143.15.2 by Jelmer Vernooij
Run autopep8.
55
        'test_command_encoding',
56
        'test_commit',
57
        'test_config',
58
        'test_conflicts',
59
        'test_cp',
60
        'test_debug',
61
        'test_deleted',
62
        'test_diff',
63
        'test_dump_btree',
64
        'test_exceptions',
65
        'test_export',
66
        'test_export_pot',
67
        'test_fetch_ghosts',
68
        'test_filesystem_cicp',
69
        'test_filtered_view_ops',
70
        'test_find_merge_base',
71
        'test_help',
72
        'test_hooks',
73
        'test_import',
74
        'test_ignore',
75
        'test_ignored',
76
        'test_info',
77
        'test_init',
78
        'test_inventory',
79
        'test_join',
80
        'test_link_tree',
81
        'test_locale',
82
        'test_log',
83
        'test_logformats',
84
        'test_lookup_revision',
85
        'test_ls',
86
        'test_lsprof',
87
        'test_merge',
88
        'test_merge_directive',
89
        'test_missing',
90
        'test_mkdir',
91
        'test_modified',
92
        'test_mv',
93
        'test_nick',
94
        'test_non_ascii',
95
        'test_outside_wt',
96
        'test_pack',
7296.5.2 by Jelmer Vernooij
Import the patch command.
97
        'test_patch',
7143.15.2 by Jelmer Vernooij
Run autopep8.
98
        'test_ping',
99
        'test_plugins',
100
        'test_pull',
101
        'test_push',
102
        'test_reconcile',
103
        'test_reconfigure',
104
        'test_reference',
105
        'test_remerge',
106
        'test_remove',
107
        'test_re_sign',
108
        'test_remember_option',
109
        'test_remove_tree',
110
        'test_repair_workingtree',
111
        'test_resolve',
7290.13.1 by Jelmer Vernooij
Add a 'brz resolve-location' command.
112
        'test_resolve_location',
7143.15.2 by Jelmer Vernooij
Run autopep8.
113
        'test_revert',
114
        'test_revno',
115
        'test_revision_history',
116
        'test_revision_info',
117
        'test_rmbranch',
118
        'test_script',
119
        'test_selftest',
120
        'test_send',
121
        'test_serve',
122
        'test_shared_repository',
123
        'test_shell_complete',
124
        'test_shelve',
125
        'test_sign_my_commits',
126
        'test_verify_signatures',
127
        'test_split',
128
        'test_status',
129
        'test_switch',
130
        'test_tags',
131
        'test_testament',
132
        'test_too_much',
133
        'test_uncommit',
134
        'test_unknowns',
135
        'test_update',
136
        'test_upgrade',
137
        'test_version',
138
        'test_version_info',
139
        'test_versioning',
140
        'test_view',
141
        'test_whoami',
142
        ]
3302.9.27 by Vincent Ladeuil
Fixed as per Ian's review.
143
    # add the tests for the sub modules
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
144
    suite.addTests(loader.loadTestsFromModuleNames(
7143.15.2 by Jelmer Vernooij
Run autopep8.
145
        [prefix + module_name for module_name in testmod_names]))
1185.85.24 by John Arbash Meinel
Moved run_bzr_decode into TestCase
146
    return suite
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
147
148
5184.1.1 by Vincent Ladeuil
Random cleanups to catch up with copyright updates in trunk.
149
class ExternalBase(tests.TestCaseWithTransport):
5283.4.5 by Martin Pool
Update remaining subclasses of ExternalBase
150
    """Don't use this class anymore, use TestCaseWithTransport or similar"""