~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
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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
25
# it, all the tests defined below should be moved to blackbox instead. 
26
2485.8.57 by Vincent Ladeuil
Cosmetic changes.
27
from bzrlib.tests import TestLoader
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
28
29
30
def test_suite():
31
    testmod_names = [
2485.8.4 by v.ladeuil+lp at free
Add tests for branch command.
32
        'bzrlib.tests.commands.test_branch',
2485.8.10 by Vincent Ladeuil
Add test for cat and missing.
33
        'bzrlib.tests.commands.test_cat',
2485.8.8 by Vincent Ladeuil
Add test for checkout.
34
        'bzrlib.tests.commands.test_checkout',
2817.4.3 by Vincent Ladeuil
Add tests for commit, reuse master branch transport.
35
        'bzrlib.tests.commands.test_commit',
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
36
        'bzrlib.tests.commands.test_init',
2485.8.9 by Vincent Ladeuil
Add test for init-repository and merge.
37
        'bzrlib.tests.commands.test_init_repository',
38
        'bzrlib.tests.commands.test_merge',
2485.8.10 by Vincent Ladeuil
Add test for cat and missing.
39
        'bzrlib.tests.commands.test_missing',
2485.8.7 by Vincent Ladeuil
Add test for pull.
40
        'bzrlib.tests.commands.test_pull',
2485.8.6 by Vincent Ladeuil
Fix the 'FtpServer' so that it can handle full bzr commands.
41
        'bzrlib.tests.commands.test_push',
2806.2.1 by Vincent Ladeuil
Reproduce #131396 and #128076 in the test suite.
42
        'bzrlib.tests.commands.test_update',
2485.8.3 by v.ladeuil+lp at free
Change the file naming to clearly separate the command behavior
43
        ]
44
    loader = TestLoader()
45
    suite = loader.loadTestsFromModuleNames(testmod_names)
46
47
    return suite