Last change
on this file was
1026,
checked in by osimons, 10 years ago
|
Follow-up to #765. Repository tests fail when Trac isn't installed, so disable them for slave-only tests.
|
-
Property svn:eol-style set to
native
|
File size:
973 bytes
|
Line | |
---|
1 | # -*- coding: utf-8 -*- |
---|
2 | # |
---|
3 | # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> |
---|
4 | # Copyright (C) 2007-2010 Edgewall Software |
---|
5 | # All rights reserved. |
---|
6 | # |
---|
7 | # This software is licensed as described in the file COPYING, which |
---|
8 | # you should have received as part of this distribution. The terms |
---|
9 | # are also available at http://bitten.edgewall.org/wiki/License. |
---|
10 | |
---|
11 | import doctest |
---|
12 | import unittest |
---|
13 | |
---|
14 | from bitten.util import xmlio as xmlio_module |
---|
15 | from bitten.util.tests import xmlio as xmlio_tests |
---|
16 | from bitten.util.tests import json as json_tests |
---|
17 | |
---|
18 | from bitten.tests import has_trac |
---|
19 | if has_trac: |
---|
20 | from bitten.util.tests import repository as repository_tests |
---|
21 | |
---|
22 | def suite(): |
---|
23 | suite = unittest.TestSuite() |
---|
24 | suite.addTest(doctest.DocTestSuite(xmlio_module)) |
---|
25 | suite.addTest(json_tests.suite()) |
---|
26 | suite.addTest(xmlio_tests.suite()) |
---|
27 | if has_trac: |
---|
28 | suite.addTest(repository_tests.suite()) |
---|
29 | return suite |
---|
30 | |
---|
31 | if __name__ == '__main__': |
---|
32 | unittest.main(defaultTest='suite') |
---|
Note: See
TracBrowser
for help on using the repository browser.