summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/database.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-23 10:40:53 -0400
committerBarry Warsaw2012-07-23 10:40:53 -0400
commit5598b9eea196e4085aa91aaf8a0cacaffa200355 (patch)
treed3685e9c193705ecee93bc573af960daff874e9e /src/mailman/interfaces/database.py
parentb2e4c6502c5ff4cdf9488be17556a6d39bbbde6b (diff)
downloadmailman-5598b9eea196e4085aa91aaf8a0cacaffa200355.tar.gz
mailman-5598b9eea196e4085aa91aaf8a0cacaffa200355.tar.zst
mailman-5598b9eea196e4085aa91aaf8a0cacaffa200355.zip
Diffstat (limited to 'src/mailman/interfaces/database.py')
-rw-r--r--src/mailman/interfaces/database.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mailman/interfaces/database.py b/src/mailman/interfaces/database.py
index 040bce77c..316d5be49 100644
--- a/src/mailman/interfaces/database.py
+++ b/src/mailman/interfaces/database.py
@@ -55,6 +55,19 @@ class IDatabase(Interface):
This is only used by the test framework.
"""
+ def _make_temporary():
+ """Make a temporary database.
+
+ This is a @staticmethod used in the test framework.
+
+ :return: An object with one attribute and one method. The attribute
+ `database` is the temporary `IDatabase`. The method is a callable
+ named `cleanup()`, taking no arguments which should be called when
+ the temporary database is no longer necessary. The database will
+ already be initialized, but no migrations will have been loaded
+ into it.
+ """
+
def begin():
"""Begin the current transaction."""