|
28 | 28 |
|
29 | 29 | TEST_FILE_STEM = "test" |
30 | 30 | TEST_DIR_PREFIX = "pelicantests." |
31 | | -GRAPHVIZ_RE = r'<{0} class="{1}"><img alt="{2}" src="data:image/svg\+xml;base64,[0-9a-zA-Z+=]+"></{0}>' |
| 31 | +GRAPHVIZ_RE = ( |
| 32 | + r'<{0} class="{1}"><img alt="{2}" ' |
| 33 | + r'src="data:image/svg\+xml;base64,[0-9a-zA-Z+=]+"></{0}>' |
| 34 | +) |
32 | 35 |
|
33 | 36 | GRAPHVIZ_RE_XML = r'<svg width="\d+pt" height="\d+pt"' |
34 | 37 |
|
@@ -214,24 +217,21 @@ def test_output(self): |
214 | 217 | """Test for GRAPHVIZ_IMAGE_CLASS setting.""" |
215 | 218 | TestGraphviz.test_output(self) |
216 | 219 |
|
217 | | -# This test is commented out because it fails in the GitHub action, even |
218 | | -# though it works fine locally. For some strange reason, the alt property |
219 | | -# is set to "%3", instead of "foo". This should be investigated further. |
220 | | -# |
221 | | -# class TestGraphvizAltTextWithoutID(TestGraphviz): |
222 | | -# """Class for testing the case where the Graphviz element has no id.""" |
223 | | -# |
224 | | -# def setUp(self): |
225 | | -# """Initialize the configuration.""" |
226 | | -# TestGraphviz.setUp( |
227 | | -# self, |
228 | | -# digraph_id=None, |
229 | | -# alt_text="foo", |
230 | | -# ) |
231 | | -# |
232 | | -# def test_output(self): |
233 | | -# """Test for GRAPHVIZ_IMAGE_CLASS setting.""" |
234 | | -# TestGraphviz.test_output(self) |
| 220 | + |
| 221 | +class TestGraphvizAltTextWithoutID(TestGraphviz): |
| 222 | + """Class for testing the case where the Graphviz element has no id.""" |
| 223 | + |
| 224 | + def setUp(self): |
| 225 | + """Initialize the configuration.""" |
| 226 | + TestGraphviz.setUp( |
| 227 | + self, |
| 228 | + digraph_id=None, |
| 229 | + alt_text="foo", |
| 230 | + ) |
| 231 | + |
| 232 | + def test_output(self): |
| 233 | + """Test for GRAPHVIZ_IMAGE_CLASS setting.""" |
| 234 | + TestGraphviz.test_output(self) |
235 | 235 |
|
236 | 236 |
|
237 | 237 | class TestGraphvizAltTextViaOption(TestGraphviz): |
|
0 commit comments