From 91f84edd80b4470cb0c9dfca30890388af6daec8 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 12 Mar 2008 20:34:03 -0400 Subject: Add transaction API to IDatabase, e.g. begin(), commit(), and abort(). Add an implementation of these to StockDatabase. Expose 'commit' to doctest globals. --- mailman/tests/test_documentation.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mailman/tests/test_documentation.py') 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 -- cgit v1.2.3-70-g09d2