/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2008-08-20 02:07:36 UTC
  • mfrom: (3640 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3682.
  • Revision ID: robertc@robertcollins.net-20080820020736-g2xe4921zzxtymle
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
20
Test the internal behaviour of the commands (the blackbox tests are intended to
 
21
test the usage of the commands).
 
22
"""
 
23
 
 
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
 
 
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
 
 
32
    testmod_names = [
 
33
        'bzrlib.tests.commands.test_branch',
 
34
        'bzrlib.tests.commands.test_cat',
 
35
        'bzrlib.tests.commands.test_checkout',
 
36
        'bzrlib.tests.commands.test_commit',
 
37
        'bzrlib.tests.commands.test_init',
 
38
        'bzrlib.tests.commands.test_init_repository',
 
39
        'bzrlib.tests.commands.test_merge',
 
40
        'bzrlib.tests.commands.test_missing',
 
41
        'bzrlib.tests.commands.test_pull',
 
42
        'bzrlib.tests.commands.test_push',
 
43
        'bzrlib.tests.commands.test_update',
 
44
        ]
 
45
    # add the tests for the sub modules
 
46
    suite.addTests(loader.loadTestsFromModuleNames(testmod_names))
 
47
 
 
48
    return suite