diff options
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.""" |
