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:
parent
d07713d0b0
commit
12c559447a
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user