|
23 | 23 | skip_rst = mark_class(pytest.mark.skip(
|
24 | 24 | reason='ReStructuredText not available'))
|
25 | 25 |
|
26 |
| -if StructuredText: |
27 |
| - skip_stext = lambda func, *args, **kwargs: func |
28 |
| -else: |
29 |
| - skip_stext = mark_class(pytest.mark.skip( |
30 |
| - reason='StructuredText not available')) |
31 |
| - |
32 | 26 | import roundup.cgi.templating
|
33 | 27 | if roundup.cgi.templating._import_mistune():
|
34 | 28 | skip_mistune = lambda func, *args, **kwargs: func
|
@@ -570,11 +564,6 @@ def test_string_rst(self):
|
570 | 564 | self.assertEqual(t.rst(), u2s(t_result))
|
571 | 565 | self.assertEqual(u.rst(), u2s(u_result))
|
572 | 566 |
|
573 |
| - @skip_stext |
574 |
| - def test_string_stext(self): |
575 |
| - p = StringHTMLProperty( self. client, 'test', '1', None, 'test', u2s( u'A string with [email protected] *embedded* \u00df')) |
576 |
| - self. assertEqual( p. stext(), u2s( u'<p>A string with <a href="mailto:[email protected]">[email protected]</a> <em>embedded</em> \u00df</p>\n')) |
577 |
| - |
578 | 567 | def test_string_field(self):
|
579 | 568 | p = StringHTMLProperty( self. client, 'test', '1', None, 'test', 'A string <b> with [email protected] embedded < html</b>')
|
580 | 569 | self. assertEqual( p. field(), '<input name="test1@test" size="30" type="text" value="A string <b> with [email protected] embedded &lt; html</b>">')
|
@@ -1103,23 +1092,6 @@ def test_string_rst(self):
|
1103 | 1092 | p = StringHTMLProperty( self. client, 'test', '1', None, 'test', u2s( u'A string with [email protected] *embedded* \u00df'))
|
1104 | 1093 | self. assertEqual( p. rst(), u2s( u'A string with <a href="mailto:[email protected]">[email protected]</a> *embedded* \u00df'))
|
1105 | 1094 |
|
1106 |
| -class NoStextTestCase(TemplatingTestCase) : |
1107 |
| - def setUp(self): |
1108 |
| - TemplatingTestCase.setUp(self) |
1109 |
| - |
1110 |
| - from roundup.cgi import templating |
1111 |
| - self.__StructuredText = templating.StructuredText |
1112 |
| - templating.StructuredText = None |
1113 |
| - |
1114 |
| - def tearDown(self): |
1115 |
| - from roundup.cgi import templating |
1116 |
| - templating.StructuredText = self.__StructuredText |
1117 |
| - |
1118 |
| - def test_string_stext(self): |
1119 |
| - p = StringHTMLProperty( self. client, 'test', '1', None, 'test', u2s( u'A string with [email protected] *embedded* \u00df')) |
1120 |
| - self. assertEqual( p. stext(), u2s( u'A string with <a href="mailto:[email protected]">[email protected]</a> *embedded* \u00df')) |
1121 |
| - |
1122 |
| - |
1123 | 1095 | class ZUtilsTestcase(TemplatingTestCase):
|
1124 | 1096 |
|
1125 | 1097 | def test_Iterator(self):
|
|
0 commit comments