aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/tools.py
Commit message (Collapse)AuthorAgeFilesLines
* Need to run nosetests with CELERY_CONFIG_MODULE set to from_tests again.Christopher Allan Webber2011-06-191-3/+5
| | | | | 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-16/+29
| | | | | | | | | 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.
* A setup_fresh_app decorator which should make writing tests a bit easier.Christopher Allan Webber2011-06-061-0/+16
| | | | Setting test_register_views() to use it also.
* Actually it's a lot better of an idea to load the full application outChristopher Allan Webber2011-06-051-4/+3
| | | | | | | | | of the paste config file the way paste would than to load components of it ourselves. Aside from this being nicer, it's also necessary for the sake of getting the middleware working nicely. We could do it ourselves, but why bother when paste can just do it for us?
* Proper webtest infrastructure... seems to be about right anyway :)Christopher Allan Webber2011-06-041-0/+94