From cb1454408299afed5376b15c004e0e2170280a05 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 3 Apr 2013 14:32:35 -0500 Subject: [PATCH] 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 ;) --- mediagoblin/tests/test_misc.py | 2 ++ mediagoblin/tests/test_modelmethods.py | 1 + 2 files changed, 3 insertions(+) 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() -- 2.25.1