~bzr-pqm/bzr/bzr.dev

2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
1
# Copyright (C) 2007 Canonical Ltd
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
3302.9.9 by Vincent Ladeuil
bzrlib.tests.commands switched from test_suite() to load_tests().
27
def load_tests(basic_tests, module, loader):
28
    suite = loader.suiteClass()
29
    # add the tests for this module
30
    suite.addTests(basic_tests)
31
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
32
    testmod_names = [
2485.8.4 by v.ladeuil+lp at free
Add tests for branch command.
33
        'bzrlib.tests.commands.test_branch',
2485.8.10 by Vincent Ladeuil
Add test for cat and missing.
34
        'bzrlib.tests.commands.test_cat',
2485.8.8 by Vincent Ladeuil
Add test for checkout.
35
        'bzrlib.tests.commands.test_checkout',
2817.4.3 by Vincent Ladeuil
Add tests for commit, reuse master branch transport.
36
        'bzrlib.tests.commands.test_commit',
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
37
        'bzrlib.tests.commands.test_init',
2485.8.9 by Vincent Ladeuil
Add test for init-repository and merge.
38
        'bzrlib.tests.commands.test_init_repository',
39
        'bzrlib.tests.commands.test_merge',
2485.8.10 by Vincent Ladeuil
Add test for cat and missing.
40
        'bzrlib.tests.commands.test_missing',
2485.8.7 by Vincent Ladeuil
Add test for pull.
41
        'bzrlib.tests.commands.test_pull',
2485.8.6 by Vincent Ladeuil
Fix the 'FtpServer' so that it can handle full bzr commands.
42
        'bzrlib.tests.commands.test_push',
2806.2.1 by Vincent Ladeuil
Reproduce #131396 and #128076 in the test suite.
43
        'bzrlib.tests.commands.test_update',
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
44
        ]
3302.9.27 by Vincent Ladeuil
Fixed as per Ian's review.
45
    # add the tests for the sub modules
46
    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
47
48
    return suite