Tests: Kill the whole testing database after all tests

nose allows setup and teardown functions at the package
level. So use this to drop the complete database after all
tests have finished.
This commit is contained in:
Elrond 2011-06-10 21:59:04 +02:00
parent d07713d0b0
commit 12c559447a

View File

@ -13,3 +13,14 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from .. import globals
def setup_package():
pass
def teardown_package():
print "Killing db ..."
globals.db_connection.drop_database(globals.database.name)
print "... done"