summaryrefslogtreecommitdiff
path: root/src/mailman/database/base.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-10-23 18:53:18 -0400
committerBarry Warsaw2011-10-23 18:53:18 -0400
commit379aa1fac89428650e40ace3a672cdf43cc6aa73 (patch)
treed9db244ea274d3f18afa5c76561a2234de8a8885 /src/mailman/database/base.py
parent4eb33b4c70e980d4689c42d359f9321a4b41df6c (diff)
downloadmailman-379aa1fac89428650e40ace3a672cdf43cc6aa73.tar.gz
mailman-379aa1fac89428650e40ace3a672cdf43cc6aa73.tar.zst
mailman-379aa1fac89428650e40ace3a672cdf43cc6aa73.zip
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)