Skip to content

Clear mailman database after each test

Simon Hanna requested to merge thelinuxguy/postorius:tests-cleanup into master

Add a tearDown method to ViewTestCase that clears out all domains and users. This causes all data to be cleared out of mailman's database to ensure that no side effects between tests can occur. All additions to django's database don't have to be explicitly deleted as django uses a fresh database for each test by default.

All open merge requests that rewrote any tapes have to be rebased of this and the tapes have to be re-recorded.

Sidenote: currently open requests don't get deleted when a list is deleted. I filed mailman#214 (closed) for that.

Merge request reports