~brz/brz-debian/byoci

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: James Westby
  • Date: 2007-05-03 18:42:47 UTC
  • mfrom: (95.1.14 bzr-builddeb.0.15.tests)
  • Revision ID: jw+debian@jameswestby.net-20070503184247-3si8cp52q0soyy0f
* Lock the working trees to fix compatibility with 0.15+ dirstate trees.
  (Closes: #421900)
* Add the start of a test suite to help avoid bugs like that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#    __init__.py -- Testsuite for builddeb
 
2
#    Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 
3
#    
 
4
#    This file is part of bzr-builddeb.
 
5
#
 
6
#    bzr-builddeb is free software; you can redistribute it and/or modify
 
7
#    it under the terms of the GNU General Public License as published by
 
8
#    the Free Software Foundation; either version 2 of the License, or
 
9
#    (at your option) any later version.
 
10
#
 
11
#    bzr-builddeb is distributed in the hope that it will be useful,
 
12
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
#    GNU General Public License for more details.
 
15
#
 
16
#    You should have received a copy of the GNU General Public License
 
17
#    along with bzr-builddeb; if not, write to the Free Software
 
18
#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
#
 
20
 
 
21
import doctest
 
22
from unittest import TestSuite
 
23
 
 
24
from bzrlib.tests import TestUtil
 
25
 
 
26
import changes
 
27
 
 
28
def test_suite():
 
29
    loader = TestUtil.TestLoader()
 
30
    suite = TestSuite()
 
31
    testmod_names = [
 
32
            'test_builder',
 
33
            ]
 
34
    suite.addTest(loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names]))
 
35
    suite.addTest(doctest.DocTestSuite(changes))
 
36
 
 
37
    return suite
 
38