~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/pagetests/tests.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 22:01:40 UTC
  • mfrom: (14583.1.25 move-webservice)
  • Revision ID: launchpad@pqm.canonical.com-20111222220140-o53ycgaapjua1dde
[rs=sinzui][bug=907843] Move webservice to lp.services.webservice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
 
# GNU Affero General Public License version 3 (see the file LICENSE).
3
 
 
4
 
"""Run all of the pagetests, in priority order."""
5
 
 
6
 
__metaclass__ = type
7
 
 
8
 
import os
9
 
import unittest
10
 
 
11
 
from canonical.launchpad.testing.pages import PageTestSuite
12
 
 
13
 
 
14
 
here = os.path.dirname(os.path.realpath(__file__))
15
 
 
16
 
 
17
 
def test_suite():
18
 
    stories = sorted(
19
 
        dir for dir in os.listdir(here)
20
 
        if not dir.startswith('.') and os.path.isdir(os.path.join(here, dir)))
21
 
 
22
 
    suite = unittest.TestSuite()
23
 
    for storydir in stories:
24
 
        suite.addTest(PageTestSuite(storydir))
25
 
 
26
 
    return suite