From: Christopher Allan Webber Date: Wed, 3 Apr 2013 19:32:35 +0000 (-0500) Subject: These tests need to have a MediaGoblin app setup so they can connect to the db! X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cb1454408299afed5376b15c004e0e2170280a05;p=mediagoblin.git These tests need to have a MediaGoblin app setup so they can connect to the db! Thanks to py.test --boxed for helping discover that ;) --- diff --git a/mediagoblin/tests/test_misc.py b/mediagoblin/tests/test_misc.py index 776affc6..b20262cf 100644 --- a/mediagoblin/tests/test_misc.py +++ b/mediagoblin/tests/test_misc.py @@ -29,6 +29,7 @@ def test_404_for_non_existent(): def test_user_deletes_other_comments(): + get_app() # gotta init the db and etc user_a = fixture_add_user(u"chris_a") user_b = fixture_add_user(u"chris_b") @@ -81,6 +82,7 @@ def test_user_deletes_other_comments(): def test_media_deletes_broken_attachment(): + get_app() # gotta init the db and etc user_a = fixture_add_user(u"chris_a") media = fixture_media_entry(uploader=user_a.id, save=False) diff --git a/mediagoblin/tests/test_modelmethods.py b/mediagoblin/tests/test_modelmethods.py index 18f90bdc..808aa9f2 100644 --- a/mediagoblin/tests/test_modelmethods.py +++ b/mediagoblin/tests/test_modelmethods.py @@ -133,6 +133,7 @@ class TestMediaEntrySlugs(object): def test_media_data_init(): + get_app() # gotta init the db and etc Session.rollback() Session.remove() media = MediaEntry()