diff options
| author | Barry Warsaw | 2012-07-25 23:06:30 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-07-25 23:06:30 -0400 |
| commit | b60f54fedab835f214f3c88e990ff3bb098e6cad (patch) | |
| tree | 3562482220236d9feac381c6626790db44ac1988 /src/mailman/interfaces/database.py | |
| parent | fc7e14405afd9a89ae1b6cc8cabd861ec4e72ee8 (diff) | |
| download | mailman-b60f54fedab835f214f3c88e990ff3bb098e6cad.tar.gz mailman-b60f54fedab835f214f3c88e990ff3bb098e6cad.tar.zst mailman-b60f54fedab835f214f3c88e990ff3bb098e6cad.zip | |
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.""" |
