aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | celery_setup: drop param to setup_self and simplify OUR_MODULENAMEElrond2011-06-102-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 Webber2011-06-121-0/+11
|\ \ \ \ | |_|_|/ |/| | |
| * | | Tests: Kill the whole testing database after all testsElrond2011-06-101-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 Webber2011-06-113-13/+13
| | |
* | | Switch process_media over to using the workbench.Christopher Allan Webber2011-06-111-2/+11
| | |
* | | Don't bother returning whether or not we copied it or not, we canChristopher Allan Webber2011-06-112-17/+11
| | | | | | | | | | | | figure that out by looking to see whether our storage is local or not.
* | | Moving workbench out of process_mediaChristopher Allan Webber2011-06-114-5/+3
| | |
* | | Merge branch 'master' into workbenchChristopher Allan Webber2011-06-111-9/+10
|\ \ \
| * | | Import mediagoblin.globals as mg_globals so we can be sure things areChristopher Allan Webber2011-06-111-9/+10
| |/ / | | | | | | | | | set up in the right order.
* | | Have the application set up instances of the WorkbenchManager.Christopher Allan Webber2011-06-112-5/+16
| | |
* | | test WorkbenchManager.possibly_localize_file()Christopher Allan Webber2011-06-111-0/+43
| | |
* | | We don't need this extra '.' in making the filenameChristopher Allan Webber2011-06-111-1/+1
| | |
* | | Added a FakeRemoteStorage, for testing purposesChristopher Allan Webber2011-06-111-2/+10
| | |
* | | Make sure workbench won't kill directories out of scope.Christopher Allan Webber2011-06-111-6/+16
| | |
* | | Tests for creating/destroying workbenchesChristopher Allan Webber2011-06-111-0/+44
| | |
* | | Wrote functions and documentation for all the WorkbenchManagerChristopher Allan Webber2011-06-111-8/+75
| | | | | | | | | | | | functions but haven't actually tested them yet. :)
* | | Base structure of workbench managerChristopher Allan Webber2011-06-111-0/+73
| | |
* | | Adding a copy_locally() method to the StorageInterface and giving it a test.Christopher Allan Webber2011-06-112-0/+37
| | |
* | | Allow storage systems to be local and allow for a get_local_pathChristopher Allan Webber2011-06-112-1/+37
|/ / | | | | | | method if applicable.
* | This attribute in quotes, too. :)Christopher Allan Webber2011-06-071-1/+1
| |
* | XML attributes must be in quotes!Christopher Allan Webber2011-06-071-3/+3
| |
* | Fixing check_filetype...Christopher Allan Webber2011-06-071-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 Webber2011-06-061-0/+2
| |
* | Merge remote branch 'remotes/gandaro/324-bad-media-types'Christopher Allan Webber2011-06-062-1/+36
|\ \
| * | add changes in mediagoblin/submit/views.pyJakob Kramer2011-06-021-1/+4
| | |
| * | should fix #324Jakob Kramer2011-06-021-0/+32
| | |
* | | A setup_fresh_app decorator which should make writing tests a bit easier.Christopher Allan Webber2011-06-062-5/+19
| | | | | | | | | | | | Setting test_register_views() to use it also.
* | | A clear_test_buckets() methodChristopher Allan Webber2011-06-061-0/+20
| | |
* | | Docstring for test_register_views()Christopher Allan Webber2011-06-051-0/+3
| | |
* | | Make sure that two users with the same username can't register.Christopher Allan Webber2011-06-051-1/+14
| | |
* | | Email verification view test worksChristopher Allan Webber2011-06-051-1/+25
| | |
* | | Make sure we can register, and then that we get the verification emailChristopher Allan Webber2011-06-051-4/+46
| | |
* | | Use render_template utility so we can test whether or not this emailChristopher Allan Webber2011-06-051-11/+10
| | | | | | | | | | | | sends
* | | Moved the verification url generation string template to a global variableChristopher Allan Webber2011-06-051-5/+9
| | |
* | | Make sure that get_test_app() really does wipe the databaseChristopher Allan Webber2011-06-051-0/+38
| | |
* | | Made a simple template rendering view and switched a bunch of code over to ↵Christopher Allan Webber2011-06-054-29/+19
| | | | | | | | | | | | using it
* | | I have a strong preference for aligning all parameters in a function call.Christopher Allan Webber2011-06-055-15/+24
| | |
* | | Merge remote branch 'remotes/elrond/idea/shortcuts'Christopher Allan Webber2011-06-057-85/+67
|\ \ \ | | |/ | |/|
| * | Create redirect shortcut and use it aroundElrond2011-06-055-24/+19
| | | | | | | | | | | | | | | This is just replacing exc.HTTPFound(location=request.urlgen(...)) by redirect(request, ...). No magic.
| * | Reformat render_to_response callsElrond2011-06-055-43/+38
| | | | | | | | | | | | | | | Just a simple indentation and ordering change, no functional change.
| * | Create render_to_reponse and use it everywhere.Elrond2011-06-056-47/+39
| | | | | | | | | | | | Just a shortcut for Response(render_template(...))
* | | Just a bit of formatting for these unfinished tests ;)Christopher Allan Webber2011-06-051-2/+4
| | |
* | | New password check error messageChristopher Allan Webber2011-06-051-1/+3
| | |
* | | Test registration form integrityChristopher Allan Webber2011-06-051-0/+64
| | |
* | | The first bit of the registration tests working. Not fully there, butChristopher Allan Webber2011-06-051-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 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?
* | | We should store the template path, not the template object, as the keyChristopher Allan Webber2011-06-051-3/+3
|/ / | | | | | | in our testing cache
* | Firefox 3.X shows hidden fields for some reason, adding display: none;Christopher Allan Webber2011-06-051-1/+2
| | | | | | | | to be rid of them for sure
* | Moving all views over to using util.render_template()!Christopher Allan Webber2011-06-045-59/+39
| |
* | Cache template environments and gettexts so we don't have to reproduceChristopher Allan Webber2011-06-041-2/+21
| | | | | | | | them on every request.