diff options
| author | Barry Warsaw | 2011-10-23 18:53:18 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-10-23 18:53:18 -0400 |
| commit | 379aa1fac89428650e40ace3a672cdf43cc6aa73 (patch) | |
| tree | d9db244ea274d3f18afa5c76561a2234de8a8885 /src/mailman/database/base.py | |
| parent | 4eb33b4c70e980d4689c42d359f9321a4b41df6c (diff) | |
| download | mailman-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.py | 18 |
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) |
