summaryrefslogtreecommitdiff
path: root/docutils/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
commit9baf31013b10909471177e58a65ffe9cf45a36cd (patch)
treed45c59fea298eb765ad9e2e5a9c62aa9ede2b3ff /docutils/test/DocutilsTestSupport.py
parent9dabb579b15aaf99d0602cf635cf85ac444a159e (diff)
downloaddocutils-9baf31013b10909471177e58a65ffe9cf45a36cd.tar.gz
renamed TransitionTestCase to ParserTransformTestCase;
also run default transforms git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2779 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/DocutilsTestSupport.py')
-rw-r--r--docutils/test/DocutilsTestSupport.py13
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)