Only kill the database if it's really set up.
This commit is contained in:
parent
becb77ee8c
commit
908d045939
@ -21,6 +21,7 @@ def setup_package():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def teardown_package():
|
def teardown_package():
|
||||||
print "Killing db ..."
|
if mg_globals.db_connection:
|
||||||
mg_globals.db_connection.drop_database(mg_globals.database.name)
|
print "Killing db ..."
|
||||||
print "... done"
|
mg_globals.db_connection.drop_database(mg_globals.database.name)
|
||||||
|
print "... done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user