diff options
Diffstat (limited to 'src/mailman/interfaces/database.py')
| -rw-r--r-- | src/mailman/interfaces/database.py | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mailman/interfaces/database.py b/src/mailman/interfaces/database.py index a74ddd71f..1f39daee7 100644 --- a/src/mailman/interfaces/database.py +++ b/src/mailman/interfaces/database.py @@ -24,6 +24,7 @@ __all__ = [ 'DatabaseError', 'IDatabase', 'IDatabaseFactory', + 'ITemporaryDatabase', ] @@ -50,19 +51,6 @@ class IDatabase(Interface): configuration file setting. """ - 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.""" @@ -77,6 +65,11 @@ class IDatabase(Interface): +class ITemporaryDatabase(Interface): + """Marker interface for test suite adaptation.""" + + + class IDatabaseFactory(Interface): "Interface for creating new databases.""" |
