10065.2.20
by Guilherme Salgado
Some basic tests for the test openid provider |
1 |
# Copyright 2004-2008 Canonical Ltd. All rights reserved.
|
2 |
||
3 |
import os |
|
4 |
import unittest |
|
5 |
||
14578.4.1
by William Grant
Move the remains of canonical.launchpad.testing to lp.testing. |
6 |
from lp.testing.pages import PageTestSuite |
10065.2.20
by Guilherme Salgado
Some basic tests for the test openid provider |
7 |
|
8 |
||
9 |
here = os.path.dirname(os.path.realpath(__file__)) |
|
10 |
||
11 |
||
12 |
def test_suite(): |
|
13 |
stories = sorted( |
|
14 |
dir for dir in os.listdir(here) |
|
15 |
if not dir.startswith('.') and os.path.isdir(os.path.join(here, dir))) |
|
16 |
||
17 |
suite = unittest.TestSuite() |
|
18 |
suite.addTest(PageTestSuite('.')) |
|
19 |
for storydir in stories: |
|
20 |
suite.addTest(PageTestSuite(storydir)) |
|
21 |
||
22 |
return suite |