aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-12 09:11:39 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-12 09:11:39 -0500
commit2f968422e911e59b40d3334cac366b4dca011fd5 (patch)
tree7943586d3317720f4aac5567f7d9a04c99a8e19c
parent68ffb13690fa0c364c514ce253364f928e50841c (diff)
parent12c559447a75fa4b43872ccda544762a331a1bed (diff)
downloadmediagoblin-2f968422e911e59b40d3334cac366b4dca011fd5.tar.lz
mediagoblin-2f968422e911e59b40d3334cac366b4dca011fd5.tar.xz
mediagoblin-2f968422e911e59b40d3334cac366b4dca011fd5.zip
Merge remote branch 'remotes/elrond/idea/tests_kill_db'
-rw-r--r--mediagoblin/tests/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mediagoblin/tests/__init__.py b/mediagoblin/tests/__init__.py
index c129cbf8..46c7fd69 100644
--- a/mediagoblin/tests/__init__.py
+++ b/mediagoblin/tests/__init__.py
@@ -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"