10513.2.1
by Curtis Hovey
Add a crude yui-unit test runner. It does nothing, but all the pieces do work as |
1 |
# Copyright 2010 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
4 |
"""Run YUI.test tests."""
|
|
5 |
||
6 |
__metaclass__ = type |
|
7 |
__all__ = [] |
|
8 |
||
13158.4.33
by Curtis Hovey
Removed app-specific YUI test layers. |
9 |
from canonical.testing.layers import YUITestLayer |
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
10 |
from lp.testing import ( |
11 |
build_yui_unittest_suite, |
|
13158.4.7
by Curtis Hovey
Merged YUIUnitTestCaseZeta with YUIUnitTestCase. |
12 |
YUIUnitTestCase, |
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
13 |
)
|
10513.2.11
by Curtis Hovey
Moved YUIUnitTestCase to lp.testing where it can be used by other apps as needed. |
14 |
|
15 |
||
13158.4.7
by Curtis Hovey
Merged YUIUnitTestCaseZeta with YUIUnitTestCase. |
16 |
class RegistryYUIUnitTestCase(YUIUnitTestCase): |
10513.2.1
by Curtis Hovey
Add a crude yui-unit test runner. It does nothing, but all the pieces do work as |
17 |
|
13158.4.33
by Curtis Hovey
Removed app-specific YUI test layers. |
18 |
layer = YUITestLayer |
10513.2.1
by Curtis Hovey
Add a crude yui-unit test runner. It does nothing, but all the pieces do work as |
19 |
suite_name = 'RegistryYUIUnitTests' |
10513.2.5
by Curtis Hovey
Restructured the test. It can be simplified. |
20 |
|
10513.2.1
by Curtis Hovey
Add a crude yui-unit test runner. It does nothing, but all the pieces do work as |
21 |
|
22 |
def test_suite(): |
|
13555.5.1
by Gavin Panella
Search more widely when constructing a suite of YUI test cases. |
23 |
app_testing_path = 'lp/registry' |
10513.2.11
by Curtis Hovey
Moved YUIUnitTestCase to lp.testing where it can be used by other apps as needed. |
24 |
return build_yui_unittest_suite(app_testing_path, RegistryYUIUnitTestCase) |