equal
deleted
inserted
replaced
24 """ |
24 """ |
25 |
25 |
26 |
26 |
27 import os, os.path as osp |
27 import os, os.path as osp |
28 import sys |
28 import sys |
29 import unittest |
|
30 |
29 |
31 # imported by default to simplify further import statements |
30 # imported by default to simplify further import statements |
32 from logilab.common.testlib import unittest_main |
31 from logilab.common.testlib import TestCase, unittest_main |
33 |
32 |
34 import windmill |
33 import windmill |
35 from windmill.dep import functest |
34 from windmill.dep import functest |
36 |
35 |
37 from cubicweb.devtools.httptest import CubicWebServerTC |
36 from cubicweb.devtools.httptest import CubicWebServerTC |
43 self.test_list = test_list |
42 self.test_list = test_list |
44 |
43 |
45 unittestreporter = UnitTestReporter() |
44 unittestreporter = UnitTestReporter() |
46 functest.reports.register_reporter(unittestreporter) |
45 functest.reports.register_reporter(unittestreporter) |
47 |
46 |
48 class WindmillUnitTestCase(unittest.TestCase): |
47 class WindmillUnitTestCase(TestCase): |
49 def setUp(self): |
48 def setUp(self): |
50 windmill.stdout, windmill.stdin = sys.stdout, sys.stdin |
49 windmill.stdout, windmill.stdin = sys.stdout, sys.stdin |
51 from windmill.bin.admin_lib import configure_global_settings, setup |
50 from windmill.bin.admin_lib import configure_global_settings, setup |
52 configure_global_settings() |
51 configure_global_settings() |
53 windmill.settings['TEST_URL'] = self.test_url |
52 windmill.settings['TEST_URL'] = self.test_url |