1
- from __future__ import print_function
2
1
from importlib import reload
3
2
from node .tests import NodeTestCase
4
3
from yafowil import button
25
24
from yafowil .base import factory
26
25
from yafowil .utils import Tag
27
26
import lxml .etree as etree
28
- import sys
29
- import unittest
30
27
31
28
32
29
class YafowilTestCase (NodeTestCase ):
@@ -71,76 +68,4 @@ def wrapped_fxml(value):
71
68
return fxml (u'<div>' + value + u'</div>' )
72
69
73
70
74
- tag = Tag (lambda msg : msg )
75
-
76
-
77
- def test_suite ():
78
- from yafowil .tests import test_base
79
- from yafowil .tests import test_button
80
- from yafowil .tests import test_checkbox
81
- from yafowil .tests import test_common
82
- from yafowil .tests import test_compound
83
- from yafowil .tests import test_controller
84
- from yafowil .tests import test_datatypes
85
- from yafowil .tests import test_email
86
- from yafowil .tests import test_field
87
- from yafowil .tests import test_file
88
- from yafowil .tests import test_hidden
89
- from yafowil .tests import test_lines
90
- from yafowil .tests import test_number
91
- from yafowil .tests import test_password
92
- from yafowil .tests import test_persistence
93
- from yafowil .tests import test_proxy
94
- from yafowil .tests import test_resources
95
- from yafowil .tests import test_search
96
- from yafowil .tests import test_select
97
- from yafowil .tests import test_table
98
- from yafowil .tests import test_tag
99
- from yafowil .tests import test_text
100
- from yafowil .tests import test_textarea
101
- from yafowil .tests import test_tsf
102
- from yafowil .tests import test_url
103
- from yafowil .tests import test_utils
104
-
105
- suite = unittest .TestSuite ()
106
-
107
- suite .addTest (unittest .findTestCases (test_base ))
108
- suite .addTest (unittest .findTestCases (test_button ))
109
- suite .addTest (unittest .findTestCases (test_checkbox ))
110
- suite .addTest (unittest .findTestCases (test_common ))
111
- suite .addTest (unittest .findTestCases (test_compound ))
112
- suite .addTest (unittest .findTestCases (test_controller ))
113
- suite .addTest (unittest .findTestCases (test_datatypes ))
114
- suite .addTest (unittest .findTestCases (test_email ))
115
- suite .addTest (unittest .findTestCases (test_field ))
116
- suite .addTest (unittest .findTestCases (test_file ))
117
- suite .addTest (unittest .findTestCases (test_hidden ))
118
- suite .addTest (unittest .findTestCases (test_lines ))
119
- suite .addTest (unittest .findTestCases (test_number ))
120
- suite .addTest (unittest .findTestCases (test_password ))
121
- suite .addTest (unittest .findTestCases (test_persistence ))
122
- suite .addTest (unittest .findTestCases (test_proxy ))
123
- suite .addTest (unittest .findTestCases (test_resources ))
124
- suite .addTest (unittest .findTestCases (test_search ))
125
- suite .addTest (unittest .findTestCases (test_select ))
126
- suite .addTest (unittest .findTestCases (test_table ))
127
- suite .addTest (unittest .findTestCases (test_tag ))
128
- suite .addTest (unittest .findTestCases (test_text ))
129
- suite .addTest (unittest .findTestCases (test_textarea ))
130
- suite .addTest (unittest .findTestCases (test_tsf ))
131
- suite .addTest (unittest .findTestCases (test_url ))
132
- suite .addTest (unittest .findTestCases (test_utils ))
133
-
134
- return suite
135
-
136
-
137
- def run_tests ():
138
- from zope .testrunner .runner import Runner
139
-
140
- runner = Runner (found_suites = [test_suite ()])
141
- runner .run ()
142
- sys .exit (int (runner .failed ))
143
-
144
-
145
- if __name__ == '__main__' :
146
- run_tests ()
71
+ tag = Tag (lambda msg : msg )
0 commit comments