diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2023-01-16 09:19:19 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2023-01-16 09:19:19 +0000 |
| commit | 31605a59f0dcdaae45ebfbf8cb03cc70952d8e75 (patch) | |
| tree | 3db10287870d0491fc1e3fd49090f4f891857932 /docutils | |
| parent | afa6bbb9e9499ab404bce4a64090e327101f3363 (diff) | |
| download | docutils-31605a59f0dcdaae45ebfbf8cb03cc70952d8e75.tar.gz | |
Fix and activate test for "parts" published by the LaTeX writer.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9317 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/test/test_writers/test_latex2e_misc.py | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/docutils/test/test_writers/test_latex2e_misc.py b/docutils/test/test_writers/test_latex2e_misc.py index a11f24c5e..32b1edc29 100644 --- a/docutils/test/test_writers/test_latex2e_misc.py +++ b/docutils/test/test_writers/test_latex2e_misc.py @@ -58,29 +58,29 @@ class PublishTestCase(unittest.TestCase): def test_publish_parts(self): """Check for the presence of documented parts. """ - # parts = core.publish_parts(contents_test_input, - # settings_overrides=self.settings) - # documented_parts = [ - # 'abstract', - # 'body', - # 'body_pre_docinfo', - # 'dedication', - # 'docinfo', - # 'encoding', - # 'fallbacks', - # 'head_prefix', - # 'latex_preamble', - # 'pdfsetup', - # 'requirements', - # 'stylesheet', - # 'subtitle', - # 'title', - # 'titledata', - # 'version', - # 'whole' - # ] - # TODO: activate and fix test. - # self.assertEqual(sorted(parts.keys()), documented_parts) + parts = core.publish_parts(contents_test_input, + writer_name='latex', + settings_overrides=self.settings) + documented_parts = [ + 'abstract', + 'body', + 'body_pre_docinfo', + 'dedication', + 'docinfo', + 'encoding', + 'fallbacks', + 'head_prefix', + 'latex_preamble', + 'pdfsetup', + 'requirements', + 'stylesheet', + 'subtitle', + 'title', + 'titledata', + 'version', + 'whole' + ] + self.assertEqual(sorted(parts.keys()), documented_parts) class WarningsTestCase(unittest.TestCase): |
