1 | # -*- coding: utf-8 -*- |
---|
2 | import unittest |
---|
3 | from base import * |
---|
4 | from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite |
---|
5 | from Products.PloneTestCase.layer import PloneSite |
---|
6 | from Products.QuillsEnabled.tests import test_docfile |
---|
7 | |
---|
8 | for x in ZOPE_DEPS + PLONE_DEPS: |
---|
9 | ztc.installProduct(x) |
---|
10 | |
---|
11 | ptc.setupPloneSite(products=PLONE_DEPS) |
---|
12 | |
---|
13 | #test_suite = test_docfile.test_suite |
---|
14 | |
---|
15 | def test_suite(): |
---|
16 | suite = unittest.TestSuite(()) |
---|
17 | |
---|
18 | suite.addTest(ZopeDocFileSuite( |
---|
19 | 'workflowstates.txt', |
---|
20 | package='quills.app.tests', |
---|
21 | test_class=test_docfile.QuillsDocTestCase, |
---|
22 | optionflags=test_docfile.optionflags, |
---|
23 | ) |
---|
24 | ) |
---|
25 | |
---|
26 | suite.addTest(ZopeDocFileSuite( |
---|
27 | 'tests.txt', |
---|
28 | package='quills.core.tests', |
---|
29 | test_class=test_docfile.QuillsDocTestCase, |
---|
30 | optionflags=test_docfile.optionflags, |
---|
31 | ) |
---|
32 | ) |
---|
33 | |
---|
34 | suite.addTest(ZopeDocFileSuite( |
---|
35 | 'tests.txt', |
---|
36 | package='quills.core.tests', |
---|
37 | test_class=test_docfile.QuillsContributorDocTestCase, |
---|
38 | optionflags=test_docfile.optionflags, |
---|
39 | ) |
---|
40 | ) |
---|
41 | |
---|
42 | suite.addTest(ZopeDocFileSuite( |
---|
43 | 'tests.txt', |
---|
44 | package='quills.core.tests', |
---|
45 | test_class=test_docfile.QuillsDocTestCase, |
---|
46 | optionflags=test_docfile.optionflags, |
---|
47 | ) |
---|
48 | ) |
---|
49 | |
---|
50 | suite.addTest(ZopeDocFileSuite( |
---|
51 | 'extras_browser.rst', |
---|
52 | package='quintagroup.quills.extras.tests', |
---|
53 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
54 | optionflags=test_docfile.optionflags, |
---|
55 | ) |
---|
56 | ) |
---|
57 | |
---|
58 | suite.addTest(ZopeDocFileSuite( |
---|
59 | 'extras_browser.rst', |
---|
60 | package='quintagroup.quills.extras.tests', |
---|
61 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
62 | optionflags=test_docfile.optionflags, |
---|
63 | ) |
---|
64 | ) |
---|
65 | |
---|
66 | suite.addTest(ZopeDocFileSuite( |
---|
67 | 'openBugs.rst', |
---|
68 | package='Products.QuillsEnabled.tests', |
---|
69 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
70 | optionflags=test_docfile.optionflags, |
---|
71 | ) |
---|
72 | ) |
---|
73 | |
---|
74 | suite.addTest(ZopeDocFileSuite( |
---|
75 | 'fixedBugs.rst', |
---|
76 | package='Products.QuillsEnabled.tests', |
---|
77 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
78 | optionflags=test_docfile.optionflags, |
---|
79 | ) |
---|
80 | ) |
---|
81 | |
---|
82 | suite.addTest(ZopeDocFileSuite( |
---|
83 | 'extras_fixedBugs.rst', |
---|
84 | package='quintagroup.quills.extras.tests', |
---|
85 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
86 | optionflags=test_docfile.optionflags, |
---|
87 | ) |
---|
88 | ) |
---|
89 | |
---|
90 | suite.addTest(ZopeDocFileSuite( |
---|
91 | 'openBugs.rst', |
---|
92 | package='quills.app.tests', |
---|
93 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
94 | optionflags=test_docfile.optionflags, |
---|
95 | ) |
---|
96 | ) |
---|
97 | |
---|
98 | suite.addTest(ZopeDocFileSuite( |
---|
99 | 'issue193.txt', |
---|
100 | package='quills.app.tests', |
---|
101 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
102 | optionflags=test_docfile.optionflags, |
---|
103 | ) |
---|
104 | ) |
---|
105 | |
---|
106 | suite.addTest(ZopeDocFileSuite( |
---|
107 | 'syndication.rst', |
---|
108 | package='quills.app.tests', |
---|
109 | test_class=test_docfile.QuillsFunctionalTestCase, |
---|
110 | optionflags=test_docfile.optionflags, |
---|
111 | ) |
---|
112 | ) |
---|
113 | |
---|
114 | suite.addTest(ZopeDocFileSuite( |
---|
115 | 'tests.txt', |
---|
116 | package='quills.core.tests', |
---|
117 | test_class=test_docfile.QuillsContributorDocTestCase, |
---|
118 | optionflags=test_docfile.optionflags, |
---|
119 | ) |
---|
120 | ) |
---|
121 | |
---|
122 | suite.layer = PloneSite |
---|
123 | return suite |
---|