/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
4797.42.1 by Vincent Ladeuil
Merge 2.0 into 2.1 including fixes for #262450, #373898, #498409
1
# Copyright (C) 2007-2010 Canonical Ltd
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
2
#
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.
7
#
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.
12
#
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
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
16
17
18
"""Commands behaviour tests for bzr.
19
2885.1.2 by Vincent Ladeuil
Review comments.
20
Test the internal behaviour of the commands (the blackbox tests are intended to
21
test the usage of the commands).
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
22
"""
23
2885.1.2 by Vincent Ladeuil
Review comments.
24
# FIXME: If the separation described above from the blackbox tests is not worth
3943.8.1 by Marius Kruger
remove all trailing whitespace from bzr source
25
# it, all the tests defined below should be moved to blackbox instead.
2885.1.2 by Vincent Ladeuil
Review comments.
26
7143.15.2 by Jelmer Vernooij
Run autopep8.
27
6625.1.5 by Martin
Drop custom load_tests implementation and use unittest signature
28
def load_tests(loader, basic_tests, pattern):
3302.9.9 by Vincent Ladeuil
bzrlib.tests.commands switched from test_suite() to load_tests().
29
    suite = loader.suiteClass()
30
    # add the tests for this module
31
    suite.addTests(basic_tests)
32
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
33
    testmod_names = [
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
34
        'breezy.tests.commands.test_branch',
35
        'breezy.tests.commands.test_cat',
36
        'breezy.tests.commands.test_checkout',
37
        'breezy.tests.commands.test_commit',
38
        'breezy.tests.commands.test_init',
39
        'breezy.tests.commands.test_init_repository',
40
        'breezy.tests.commands.test_merge',
41
        'breezy.tests.commands.test_missing',
42
        'breezy.tests.commands.test_pull',
43
        'breezy.tests.commands.test_push',
44
        'breezy.tests.commands.test_update',
45
        'breezy.tests.commands.test_revert',
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
46
        ]
3302.9.27 by Vincent Ladeuil
Fixed as per Ian's review.
47
    # add the tests for the sub modules
48
    suite.addTests(loader.loadTestsFromModuleNames(testmod_names))
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
49
50
    return suite