Switch test_app generation over to use py.test fixtures.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 5 Apr 2013 00:23:04 +0000 (19:23 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 5 Apr 2013 00:23:04 +0000 (19:23 -0500)
commit5c2ece7401723486d76ea0fcd2f99ba4d1002504
treea71a2bf9b15bd2805e344362e0bd265d7a124910
parente11c62a0efeb053f71f8ab0793c7399ce8b0758d
Switch test_app generation over to use py.test fixtures.

By doing this, we can take advantage of py.test's ability to create
temporary directories that are then cleaned up later during testing.
This helps for sandboxing things.

This also involves a ton of changes:
 - Changing the get_app stuff appropriately, getting rid of the
   setup_fresh_app decorator
 - Making said fixture
 - Switching over a billion tests to use it
18 files changed:
mediagoblin/tests/conftest.py [new file with mode: 0644]
mediagoblin/tests/pytest.ini [new file with mode: 0644]
mediagoblin/tests/test_api.py
mediagoblin/tests/test_auth.py
mediagoblin/tests/test_cache.py
mediagoblin/tests/test_collections.py
mediagoblin/tests/test_csrf_middleware.py
mediagoblin/tests/test_edit.py
mediagoblin/tests/test_http_callback.py
mediagoblin/tests/test_messages.py
mediagoblin/tests/test_misc.py
mediagoblin/tests/test_modelmethods.py
mediagoblin/tests/test_oauth.py
mediagoblin/tests/test_paste.ini
mediagoblin/tests/test_submission.py
mediagoblin/tests/test_tags.py
mediagoblin/tests/test_tests.py [deleted file]
mediagoblin/tests/tools.py