Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | celery_setup: drop param to setup_self and simplify OUR_MODULENAME | Elrond | 2011-06-10 | 2 | -7/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | | Merge remote branch 'remotes/elrond/idea/tests_kill_db' | Christopher Allan Webber | 2011-06-12 | 1 | -0/+11 | |
|\ \ \ \ | |_|_|/ |/| | | | ||||||
| * | | | Tests: Kill the whole testing database after all tests | Elrond | 2011-06-10 | 1 | -0/+11 | |
| |/ / | | | | | | | | | | | | | | | | nose allows setup and teardown functions at the package level. So use this to drop the complete database after all tests have finished. | |||||
* | | | possibly_localize_file->localized_file... a bit less terribly long. | Christopher Allan Webber | 2011-06-11 | 3 | -13/+13 | |
| | | | ||||||
* | | | Switch process_media over to using the workbench. | Christopher Allan Webber | 2011-06-11 | 1 | -2/+11 | |
| | | | ||||||
* | | | Don't bother returning whether or not we copied it or not, we can | Christopher Allan Webber | 2011-06-11 | 2 | -17/+11 | |
| | | | | | | | | | | | | figure that out by looking to see whether our storage is local or not. | |||||
* | | | Moving workbench out of process_media | Christopher Allan Webber | 2011-06-11 | 4 | -5/+3 | |
| | | | ||||||
* | | | Merge branch 'master' into workbench | Christopher Allan Webber | 2011-06-11 | 1 | -9/+10 | |
|\ \ \ | ||||||
| * | | | Import mediagoblin.globals as mg_globals so we can be sure things are | Christopher Allan Webber | 2011-06-11 | 1 | -9/+10 | |
| |/ / | | | | | | | | | | set up in the right order. | |||||
* | | | Have the application set up instances of the WorkbenchManager. | Christopher Allan Webber | 2011-06-11 | 2 | -5/+16 | |
| | | | ||||||
* | | | test WorkbenchManager.possibly_localize_file() | Christopher Allan Webber | 2011-06-11 | 1 | -0/+43 | |
| | | | ||||||
* | | | We don't need this extra '.' in making the filename | Christopher Allan Webber | 2011-06-11 | 1 | -1/+1 | |
| | | | ||||||
* | | | Added a FakeRemoteStorage, for testing purposes | Christopher Allan Webber | 2011-06-11 | 1 | -2/+10 | |
| | | | ||||||
* | | | Make sure workbench won't kill directories out of scope. | Christopher Allan Webber | 2011-06-11 | 1 | -6/+16 | |
| | | | ||||||
* | | | Tests for creating/destroying workbenches | Christopher Allan Webber | 2011-06-11 | 1 | -0/+44 | |
| | | | ||||||
* | | | Wrote functions and documentation for all the WorkbenchManager | Christopher Allan Webber | 2011-06-11 | 1 | -8/+75 | |
| | | | | | | | | | | | | functions but haven't actually tested them yet. :) | |||||
* | | | Base structure of workbench manager | Christopher Allan Webber | 2011-06-11 | 1 | -0/+73 | |
| | | | ||||||
* | | | Adding a copy_locally() method to the StorageInterface and giving it a test. | Christopher Allan Webber | 2011-06-11 | 2 | -0/+37 | |
| | | | ||||||
* | | | Allow storage systems to be local and allow for a get_local_path | Christopher Allan Webber | 2011-06-11 | 2 | -1/+37 | |
|/ / | | | | | | | method if applicable. | |||||
* | | This attribute in quotes, too. :) | Christopher Allan Webber | 2011-06-07 | 1 | -1/+1 | |
| | | ||||||
* | | XML attributes must be in quotes! | Christopher Allan Webber | 2011-06-07 | 1 | -3/+3 | |
| | | ||||||
* | | Fixing check_filetype... | Christopher Allan Webber | 2011-06-07 | 1 | -9/+1 | |
| | | | | | | | | | | We need to check the first part of the guess_type returned tuple, and also this try: except: doesn't belong here, so killing. | |||||
* | | Added a comment to clarify that this shouldn't stay here. | Christopher Allan Webber | 2011-06-06 | 1 | -0/+2 | |
| | | ||||||
* | | Merge remote branch 'remotes/gandaro/324-bad-media-types' | Christopher Allan Webber | 2011-06-06 | 2 | -1/+36 | |
|\ \ | ||||||
| * | | add changes in mediagoblin/submit/views.py | Jakob Kramer | 2011-06-02 | 1 | -1/+4 | |
| | | | ||||||
| * | | should fix #324 | Jakob Kramer | 2011-06-02 | 1 | -0/+32 | |
| | | | ||||||
* | | | A setup_fresh_app decorator which should make writing tests a bit easier. | Christopher Allan Webber | 2011-06-06 | 2 | -5/+19 | |
| | | | | | | | | | | | | Setting test_register_views() to use it also. | |||||
* | | | A clear_test_buckets() method | Christopher Allan Webber | 2011-06-06 | 1 | -0/+20 | |
| | | | ||||||
* | | | Docstring for test_register_views() | Christopher Allan Webber | 2011-06-05 | 1 | -0/+3 | |
| | | | ||||||
* | | | Make sure that two users with the same username can't register. | Christopher Allan Webber | 2011-06-05 | 1 | -1/+14 | |
| | | | ||||||
* | | | Email verification view test works | Christopher Allan Webber | 2011-06-05 | 1 | -1/+25 | |
| | | | ||||||
* | | | Make sure we can register, and then that we get the verification email | Christopher Allan Webber | 2011-06-05 | 1 | -4/+46 | |
| | | | ||||||
* | | | Use render_template utility so we can test whether or not this email | Christopher Allan Webber | 2011-06-05 | 1 | -11/+10 | |
| | | | | | | | | | | | | sends | |||||
* | | | Moved the verification url generation string template to a global variable | Christopher Allan Webber | 2011-06-05 | 1 | -5/+9 | |
| | | | ||||||
* | | | Make sure that get_test_app() really does wipe the database | Christopher Allan Webber | 2011-06-05 | 1 | -0/+38 | |
| | | | ||||||
* | | | Made a simple template rendering view and switched a bunch of code over to ↵ | Christopher Allan Webber | 2011-06-05 | 4 | -29/+19 | |
| | | | | | | | | | | | | using it | |||||
* | | | I have a strong preference for aligning all parameters in a function call. | Christopher Allan Webber | 2011-06-05 | 5 | -15/+24 | |
| | | | ||||||
* | | | Merge remote branch 'remotes/elrond/idea/shortcuts' | Christopher Allan Webber | 2011-06-05 | 7 | -85/+67 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Create redirect shortcut and use it around | Elrond | 2011-06-05 | 5 | -24/+19 | |
| | | | | | | | | | | | | | | | This is just replacing exc.HTTPFound(location=request.urlgen(...)) by redirect(request, ...). No magic. | |||||
| * | | Reformat render_to_response calls | Elrond | 2011-06-05 | 5 | -43/+38 | |
| | | | | | | | | | | | | | | | Just a simple indentation and ordering change, no functional change. | |||||
| * | | Create render_to_reponse and use it everywhere. | Elrond | 2011-06-05 | 6 | -47/+39 | |
| | | | | | | | | | | | | Just a shortcut for Response(render_template(...)) | |||||
* | | | Just a bit of formatting for these unfinished tests ;) | Christopher Allan Webber | 2011-06-05 | 1 | -2/+4 | |
| | | | ||||||
* | | | New password check error message | Christopher Allan Webber | 2011-06-05 | 1 | -1/+3 | |
| | | | ||||||
* | | | Test registration form integrity | Christopher Allan Webber | 2011-06-05 | 1 | -0/+64 | |
| | | | ||||||
* | | | The first bit of the registration tests working. Not fully there, but | Christopher Allan Webber | 2011-06-05 | 1 | -0/+26 | |
| | | | | | | | | | | | | | | | it's clear that the webtest part is working, without having tested the database yet. :) | |||||
* | | | Actually it's a lot better of an idea to load the full application out | Christopher Allan Webber | 2011-06-05 | 1 | -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? | |||||
* | | | We should store the template path, not the template object, as the key | Christopher Allan Webber | 2011-06-05 | 1 | -3/+3 | |
|/ / | | | | | | | in our testing cache | |||||
* | | Firefox 3.X shows hidden fields for some reason, adding display: none; | Christopher Allan Webber | 2011-06-05 | 1 | -1/+2 | |
| | | | | | | | | to be rid of them for sure | |||||
* | | Moving all views over to using util.render_template()! | Christopher Allan Webber | 2011-06-04 | 5 | -59/+39 | |
| | | ||||||
* | | Cache template environments and gettexts so we don't have to reproduce | Christopher Allan Webber | 2011-06-04 | 1 | -2/+21 | |
| | | | | | | | | them on every request. |