diff options
| author | Barry Warsaw | 2012-07-23 10:40:53 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-07-23 10:40:53 -0400 |
| commit | 5598b9eea196e4085aa91aaf8a0cacaffa200355 (patch) | |
| tree | d3685e9c193705ecee93bc573af960daff874e9e /src/mailman/interfaces/database.py | |
| parent | b2e4c6502c5ff4cdf9488be17556a6d39bbbde6b (diff) | |
| download | mailman-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.py | 13 |
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.""" |
