diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-18 11:40:40 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-18 11:40:40 +0100 |
commit | 1be247b36e58c8c71a974b65dff7194f28483f12 (patch) | |
tree | 10e55ed4a06ae78f94ec6f71848f8110389c69bf /mediagoblin/tests/tools.py | |
parent | 4637d50cfc003d638796a581f1ea8df16da879c0 (diff) | |
download | mediagoblin-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/tools.py')
-rw-r--r-- | mediagoblin/tests/tools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/tools.py b/mediagoblin/tests/tools.py index 3e78b2e3..30218ede 100644 --- a/mediagoblin/tests/tools.py +++ b/mediagoblin/tests/tools.py @@ -103,7 +103,7 @@ def suicide_if_bad_celery_environ(): raise BadCeleryEnviron(BAD_CELERY_MESSAGE) -def get_test_app(dump_old_app=True): +def get_app(dump_old_app=True): suicide_if_bad_celery_environ() # Make sure we've turned on testing @@ -164,7 +164,7 @@ def setup_fresh_app(func): """ @wraps(func) def wrapper(*args, **kwargs): - test_app = get_test_app() + test_app = get_app() testing.clear_test_buckets() return func(test_app, *args, **kwargs) |