diff options
Diffstat (limited to 'docutils/test/DocutilsTestSupport.py')
| -rw-r--r-- | docutils/test/DocutilsTestSupport.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docutils/test/DocutilsTestSupport.py b/docutils/test/DocutilsTestSupport.py index 6bc536965..5a9951da9 100644 --- a/docutils/test/DocutilsTestSupport.py +++ b/docutils/test/DocutilsTestSupport.py @@ -23,7 +23,7 @@ Exports the following: - `TransformTestSuite` - `ParserTestCase` - `ParserTestSuite` - - `TransitionTestCase` + - `ParserTransformTestCase` - `PEPParserTestCase` - `PEPParserTestSuite` - `GridTableParserTestCase` @@ -427,13 +427,17 @@ class ParserTestSuite(CustomTestSuite): run_in_debugger=run_in_debugger) -class TransitionTestCase(ParserTestCase): +class ParserTransformTestCase(ParserTestCase): """ - Transitions-specific test case, testing parser and transforms. + Like ParserTestCase, except that default transforms are run. + For use with ParserTestSuite. """ - + + # Get settings with report_level == 1 from TransformTestCase + settings = TransformTestCase.settings + def test_parser(self): if self.run_in_debugger: pdb.set_trace() @@ -441,6 +445,7 @@ class TransitionTestCase(ParserTestCase): # Remove any additions made by "role" directives: roles._roles = {} self.parser.parse(self.input, document) + document.transformer.populate_from_components([rst.Parser]) document.transformer.apply_transforms() output = document.pformat() self.compare_output(self.input, output, self.expected) |
