Commit 177d3f81 authored by Barry Warsaw's avatar Barry Warsaw

More fixes.

parent 83363374
......@@ -70,8 +70,12 @@ class TestListArchiver(unittest.TestCase):
archiver = archiver_set.get('prototype')
self.assertTrue(archiver.is_enabled)
# Disable the site-wide archiver.
archiver.system_archiver.is_enabled = False
config.push('enable prototype', """\
[archiver.prototype]
enable: no
""")
self.assertFalse(archiver.is_enabled)
config.pop('enable prototype')
......
......@@ -246,6 +246,7 @@ First post!
# global archivers. No messages will get archived.
for archiver in IListArchiverSet(self._mlist).archivers:
archiver.is_enabled = False
config.db.store.commit()
self._archiveq.enqueue(
self._msg, {},
listname=self._mlist.fqdn_listname)
......
......@@ -478,6 +478,10 @@ def reset_the_world():
with transaction():
for message in message_store.messages:
message_store.delete_message(message['message-id'])
# Delete any other residual messages.
for dirpath, dirnames, filenames in os.walk(config.MESSAGES_DIR):
for filename in filenames:
os.remove(os.path.join(dirpath, filename))
# Reset the global style manager.
getUtility(IStyleManager).populate()
# Remove all dynamic header-match rules.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment