summaryrefslogtreecommitdiff
path: root/src/mailman/database/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/database/base.py')
-rw-r--r--src/mailman/database/base.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mailman/database/base.py b/src/mailman/database/base.py
index 37fe35eb9..1e71341e0 100644
--- a/src/mailman/database/base.py
+++ b/src/mailman/database/base.py
@@ -97,6 +97,24 @@ class StormBaseDatabase:
"""
raise NotImplementedError
+ def _pre_reset(self, store):
+ """Clean up method for testing.
+
+ This method is called during the test suite just before all the model
+ tables are removed. Override this to perform any database-specific
+ pre-removal cleanup.
+ """
+ pass
+
+ def _post_reset(self, store):
+ """Clean up method for testing.
+
+ This method is called during the test suite just after all the model
+ tables have been removed. Override this to perform any
+ database-specific post-removal cleanup.
+ """
+ pass
+
def _create(self, debug):
# Calculate the engine url.
url = expand(config.database.url, config.paths)