~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2004-2008 Canonical Ltd.  All rights reserved.

import os
import unittest

from lp.testing.pages import PageTestSuite


here = os.path.dirname(os.path.realpath(__file__))


def test_suite():
    stories = sorted(
        dir for dir in os.listdir(here)
        if not dir.startswith('.') and os.path.isdir(os.path.join(here, dir)))

    suite = unittest.TestSuite()
    suite.addTest(PageTestSuite('.'))
    for storydir in stories:
        suite.addTest(PageTestSuite(storydir))

    return suite