summaryrefslogtreecommitdiff
path: root/mailman/tests
diff options
context:
space:
mode:
authorBarry Warsaw2008-03-12 20:34:03 -0400
committerBarry Warsaw2008-03-12 20:34:03 -0400
commit91f84edd80b4470cb0c9dfca30890388af6daec8 (patch)
treee6cd540bfb2f575ce65e41ac2de4b9fc3d0631fe /mailman/tests
parent4e2070ca3d8bca288cbc2d96771a78c22a7ec031 (diff)
downloadmailman-91f84edd80b4470cb0c9dfca30890388af6daec8.tar.gz
mailman-91f84edd80b4470cb0c9dfca30890388af6daec8.tar.zst
mailman-91f84edd80b4470cb0c9dfca30890388af6daec8.zip
Diffstat (limited to 'mailman/tests')
-rw-r--r--mailman/tests/test_documentation.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mailman/tests/test_documentation.py b/mailman/tests/test_documentation.py
index d11d4bd70..9f46e55c8 100644
--- a/mailman/tests/test_documentation.py
+++ b/mailman/tests/test_documentation.py
@@ -53,7 +53,12 @@ def specialized_message_from_string(text):
def setup(testobj):
"""Test setup."""
+ # In general, I don't like adding convenience functions, since I think
+ # doctests should do the imports themselves. It makes for better
+ # documentation that way. However, a few are really useful, or help to
+ # hide some icky test implementation details.
testobj.globs['message_from_string'] = specialized_message_from_string
+ testobj.globs['commit'] = config.db.commit