diff options
| author | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-08 18:00:04 +0000 |
|---|---|---|
| committer | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-08 18:00:04 +0000 |
| commit | cba3bdf48e89b677e5c0a1b694e13cb8d5a31dd1 (patch) | |
| tree | 6d0f7c7ad264b16a2f60cd4c56be892433e0cecb /docutils/test/DocutilsTestSupport.py | |
| parent | 5ca512cf9b060a834ade57f258885db499516216 (diff) | |
| download | docutils-cba3bdf48e89b677e5c0a1b694e13cb8d5a31dd1.tar.gz | |
Inline ``PublishTestSuite``
- Move all usages of ``PublishTestSuite.generateTests``
to using subtests, as part of the test suite refactoring project
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9227 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/DocutilsTestSupport.py')
| -rw-r--r-- | docutils/test/DocutilsTestSupport.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/docutils/test/DocutilsTestSupport.py b/docutils/test/DocutilsTestSupport.py index 47e31a22e..aedefbe29 100644 --- a/docutils/test/DocutilsTestSupport.py +++ b/docutils/test/DocutilsTestSupport.py @@ -19,7 +19,6 @@ Exports the following: - `ParserTestCase` - `ParserTestSuite` - `WriterPublishTestCase` - - `PublishTestSuite` """ __docformat__ = 'reStructuredText' @@ -367,26 +366,6 @@ class WriterPublishTestCase(CustomTestCase, docutils.SettingsSpec): self.assertEqual(output, self.expected) -class PublishTestSuite(CustomTestSuite): - - def __init__(self, writer_name, suite_settings=None): - """ - `writer_name` is the name of the writer to use. - """ - super().__init__(suite_settings=suite_settings) - self.writer_name = writer_name - - def generateTests(self, dict): - for name, cases in dict.items(): - for casenum, (case_input, case_expected) in enumerate(cases): - self.addTestCase( - WriterPublishTestCase, 'test_publish', - input=case_input, expected=case_expected, - id=f'totest[{name!r}][{casenum}]', - # Passed to constructor of self.test_class: - writer_name=self.writer_name) - - def exception_data(func, *args, **kwds): """ Execute `func(*args, **kwds)` and return the resulting exception, the |
