| 1 | import unittest |
| 2 | # PIL is optional but required with the "image" directive's "scale" option |
| 3 | from docutils.parsers.rst.directives.images import PIL |
| 4 | if PIL is None: |
| 5 | raise unittest.SkipTest('requires PIL') |
| 6 | else: |
| 7 | del unittest, PIL # clean up namespace |
| 8 | |
| 9 | # Source and destination file names |
| 10 | test_source = "length_units.rst" |
| 11 | test_destination = "length_units_html5.html" |
| 12 | |
| 13 | # Keyword parameters passed to publish_file() |
| 14 | writer = "html5" |
| 15 | settings_overrides = { |
| 16 | # location of stylesheets (relative to ``docutils/test/``) |
| 17 | 'stylesheet_dirs': ('functional/input/data', ), |
| 18 | } |