diff options
-rw-r--r-- | pygments/formatters/rtf.py | 1 | ||||
-rw-r--r-- | tests/test_basic_api.py | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pygments/formatters/rtf.py b/pygments/formatters/rtf.py index b7030857..9d97fd41 100644 --- a/pygments/formatters/rtf.py +++ b/pygments/formatters/rtf.py @@ -19,6 +19,7 @@ __all__ = ['RtfFormatter'] class RtfFormatter(Formatter): + """Output RTF (Rich Text Format).""" def __init__(self, **options): """ diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index b256310c..34e8d542 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -74,9 +74,9 @@ class FormattersTest(unittest.TestCase): # test that every formatter class has the correct public API for formatter, info in formatters.FORMATTERS.iteritems(): a(len(info) == 4) - a(info[0]) # name - a(info[1]) # aliases - a(info[3]) # doc + a(info[0], "missing formatter name") # name + a(info[1], "missing formatter aliases") # aliases + a(info[3], "missing formatter docstring") # doc inst = formatter(opt1="val1") inst.get_style_defs() |