~launchpad-pqm/launchpad/devel

10488.2.22 by Brad Crittenden
Added code YUI test runner
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
12828.3.2 by Ian Booth
Fix some naming inconsistencies
9
from lp.code.windmill.testing import CodeYUITestLayer
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
10
from lp.testing import (
11
    build_yui_unittest_suite,
12
    YUIUnitTestCase,
13
    )
10488.2.22 by Brad Crittenden
Added code YUI test runner
14
15
16
class CodeYUIUnitTestCase(YUIUnitTestCase):
17
12828.3.2 by Ian Booth
Fix some naming inconsistencies
18
    layer = CodeYUITestLayer
10488.2.22 by Brad Crittenden
Added code YUI test runner
19
    suite_name = 'CodeYUIUnitTests'
20
21
22
def test_suite():
10488.2.26 by Brad Crittenden
Mods to work with moved lp.code javascript directory.
23
    app_testing_path = 'lp/code/javascript/tests'
10488.2.22 by Brad Crittenden
Added code YUI test runner
24
    return build_yui_unittest_suite(app_testing_path, CodeYUIUnitTestCase)