aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/celery_setup/from_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Move mediagoblin.celery_setup -> mediagoblin.init.celeryElrond2011-07-021-33/+0
| | | | | | As the first target of the new .init. submodule move celery_setup there. Quite straight forward, just a lot of places to change.
* Actually make use of CELERY_SETUP in from_tests.pyChristopher Allan Webber2011-06-301-3/+6
|
* Celery wasn't really being properly connected during tests.Christopher Allan Webber2011-06-261-1/+5
| | | | | | | | | | | | | | | Lots of fixes to do this. - setup_celery_from_config no longer responsible for checking 'celery_setup_elsewhere'; that's the app's job. (This was a problem because more than the app was relying on using this function) - Allow us to specifically set the config file we're setting up celery from with setup_self - Set up celery_always_eager. This is something we strongly want while doing tests. - Instead of setting up the app in the get_test_app method, let's set that up simply by importing from_tests, which should itself up via from_celery being the environment variable being set.
* Need to run nosetests with CELERY_CONFIG_MODULE set to from_tests again.Christopher Allan Webber2011-06-191-0/+26
| | | | | Basically, if we don't do this celery sets itself up before it should and improperly. :\
* Nosetests should now be able to run using the new configobj / app init setupChristopher Allan Webber2011-06-181-42/+0
| | | | | | | | | Lots of changes: - CELERY_CONFIG_FILE does not need to be set to the from_tests module to run tests anymore, in fact it *should not be set at all* and is specifically forbidden. - moved around the configuration to the new 2-file format - and generally adjusting the code appropriately.
* celery_setup: drop param to setup_self and simplify OUR_MODULENAMEElrond2011-06-101-3/+2
| | | | | | | | | | | setup_self used to look like this: setup_self(setup_globals_func=setup_globals) The function isn't called with any param, so drop it. Rewrite function as needed. The module var OUR_MODULENAME just has the module's name in it. This is available as __name__ anyway, so use this to initialize the var.
* Proper webtest infrastructure... seems to be about right anyway :)Christopher Allan Webber2011-06-041-0/+43