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 ;)
This commit is contained in:
Christopher Allan Webber 2013-04-03 14:32:35 -05:00
parent 958080be16
commit cb14544082
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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()