Switch test_app generation over to use py.test fixtures.
[mediagoblin.git] / mediagoblin / tests / test_messages.py
index 4c0f3e2e0579e25a6fc99df40dcd94f2a2ede12f..3ac917b0086276abdca8233f5cb9e9bfc537d722 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from mediagoblin.messages import fetch_messages, add_message
-from mediagoblin.tests.tools import get_app
 from mediagoblin.tools import template
 
 
-
-def test_messages():
+def test_messages(test_app):
     """
     Added messages should show up in the request.session,
     fetched messages should be the same as the added ones,
     and fetching should clear the message list.
     """
-    test_app = get_app(dump_old_app=False)
     # Aquire a request object
     test_app.get('/')
     context = template.TEMPLATE_TEST_CONTEXT['mediagoblin/root.html']