/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-07 09:41:56 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20090507094156-0r49qnwguyednfxh
Upgrade to the new loading tests API.

* tests/__init__.py:
(load_tests): Upgrade to the new loading tests API.

* __init__.py:
(load_tests): Upgrade to the new loading tests API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from unittest import TestLoader, TestSuite
18
 
from bzrlib.tests import TestUtil
19
 
 
20
 
import os
21
 
 
22
 
def test_suite():
23
 
    result = TestSuite()
24
 
 
25
 
    loader = TestUtil.TestLoader()
26
 
 
 
17
from bzrlib import tests
 
18
 
 
19
def load_tests(basic_tests, module, loader):
27
20
    testmod_names = [
28
21
        'test_commit',
29
22
        'test_diff',
33
26
        'test_revisionview',
34
27
        ]
35
28
 
36
 
    result.addTest(loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names]))
37
 
    return result
38
 
 
 
29
    basic_tests.addTest(loader.loadTestsFromModuleNames(
 
30
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
 
31
    return basic_tests