summaryrefslogtreecommitdiff
path: root/test/DocutilsTestSupport.py
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-30 15:54:45 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-30 15:54:45 +0000
commitf5badc85ced6a97b79cc6a6d85887f0f610824b6 (patch)
tree1f07ebc5c1b1f8f2947815e0b51d53467a5db0dd /test/DocutilsTestSupport.py
parentb9c1c9c56d4ae9d46d4430dc9897eb88261b3426 (diff)
downloaddocutils-f5badc85ced6a97b79cc6a6d85887f0f610824b6.tar.gz
renamed TransitionTestCase to ParserTransformTestCase;
also run default transforms git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2779 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/DocutilsTestSupport.py')
-rw-r--r--test/DocutilsTestSupport.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/DocutilsTestSupport.py b/test/DocutilsTestSupport.py
index 6bc536965..5a9951da9 100644
--- a/test/DocutilsTestSupport.py
+++ b/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)