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:
parent
958080be16
commit
cb14544082
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user