aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_messages.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-01-18 11:40:40 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-01-18 11:40:40 +0100
commit1be247b36e58c8c71a974b65dff7194f28483f12 (patch)
tree10e55ed4a06ae78f94ec6f71848f8110389c69bf /mediagoblin/tests/test_messages.py
parent4637d50cfc003d638796a581f1ea8df16da879c0 (diff)
downloadmediagoblin-1be247b36e58c8c71a974b65dff7194f28483f12.tar.lz
mediagoblin-1be247b36e58c8c71a974b65dff7194f28483f12.tar.xz
mediagoblin-1be247b36e58c8c71a974b65dff7194f28483f12.zip
Rename get_test_app to get_app.
nosetests runs everything that even vaguely looks like a test case... even our get_test_app. And as it is imported everywhere... it is run everywhere as a test case. Renaming it saves us about 10+ tests and a few seconds of time.
Diffstat (limited to 'mediagoblin/tests/test_messages.py')
-rw-r--r--mediagoblin/tests/test_messages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_messages.py b/mediagoblin/tests/test_messages.py
index c587e599..4c0f3e2e 100644
--- a/mediagoblin/tests/test_messages.py
+++ b/mediagoblin/tests/test_messages.py
@@ -15,7 +15,7 @@
# 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_test_app
+from mediagoblin.tests.tools import get_app
from mediagoblin.tools import template
@@ -26,7 +26,7 @@ def test_messages():
fetched messages should be the same as the added ones,
and fetching should clear the message list.
"""
- test_app = get_test_app(dump_old_app=False)
+ test_app = get_app(dump_old_app=False)
# Aquire a request object
test_app.get('/')
context = template.TEMPLATE_TEST_CONTEXT['mediagoblin/root.html']