aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_submission.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Dot-Notation for MediaEntry.stateElrond2012-01-041-2/+2
|
* ASCII media type support & fix a bug in file submission error handlingJoar Wandborg2011-12-311-1/+4
| | | | | | | | | | | | | | | * Added ASCII media processing * Added ASCII media display * Added ASCII media type Rebased from Joar Wandborg's ascii art branch (squashed to remove the commits borrowing code of dubious license) Fixed a bug in file submission error handling: - Moved file-extension condition out of loop (what did it do there?) - Updated file submission tests - Changed error handling in file submission, should now report more than absolutely necessary.
* Dot-Notation for Users.usernameElrond2011-12-051-2/+2
|
* Update the delete item to use the _id after all... it's the safest way.Christopher Allan Webber2011-12-051-2/+2
| | | | See http://bugs.foocorp.net/issues/695
* Merge remote-tracking branch ↵Christopher Allan Webber2011-12-041-2/+2
|\ | | | | | | | | | | | | | | | | 'remotes/lorochka85/bug852_use_media_slug_instead_of_id' Conflicts: mediagoblin/decorators.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
* | fixture_add_user: Factoring a unit test toolElrond2011-12-011-9/+3
| | | | | | | | | | | | | | Some unit tests need a user in the database, especially to act as that user. Some routines did that on their own. So factored this whole thing into a new function and use it around.
* | Fixes after merging video into master - part 2Joar Wandborg2011-11-211-3/+3
|/ | | | | | - Added handling of InvalidFileType to submit.views - Updated test_celery_setup and test_submission tests to reflect the changes to the media procesing infrastructure
* Dot-Notation for "_id"Elrond2011-11-151-3/+3
| | | | | | | | | Note: Migrations can't use "Dot Notation"! Migrations run on pymongo, not mongokit. So they can't use the "Dot Notation". This isn't really a big issue, as migrations are anyway quite mongo specific.
* Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-011-21/+21
| | | | tools/[file].py
* Fixing the confirm delete unit testChristopher Allan Webber2011-09-051-2/+3
| | | | Now it's updated for the new checkbox-for-confirm code.
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Feature #403 - Ability to delete media entries - Fixes according to feedbackJoar Wandborg2011-08-301-2/+2
| | | | | | | | | | * Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`, templates too. * Removed route extension for `mediagoblin.confirm` * Created `delete_media_files` which deletes all media files on the public_store when the entry is deleted * Created a new decorator to check if a user has the permission to delete an entry.
* Added tests for delete/confirm_deleteJoar Wandborg2011-08-301-1/+60
|
* Malicious uploads test with fake but not really image files working! :)Christopher Allan Webber2011-08-141-23/+36
|
* Merge remote branch 'remotes/gullydwarf-cfdv/f360_tagging' into mergetagsChristopher Allan Webber2011-07-301-0/+39
|\ | | | | | | | | Conflicts: mediagoblin/tests/test_submission.py
| * Adds tag unit testingCaleb Forbes Davis V2011-07-291-0/+198
| | | | | | | | | - overrides default tag parsing globals in test_mgoblin_app.ini - piggybacks on existing test_submission code to check correct tag parsing and storage in the database - verifies expected behavior given different delimiters, case sensitivities, tags that are too long, and extra whitespace - verifies list-of-dict database storage and tag slugification
* added suggestions as per http://bugs.foocorp.net/issues/365#note-9Chris Moylan2011-07-101-47/+41
|
* finished basic submission testingChris Moylan2011-07-051-12/+94
|
* mocked out submission specChris Moylan2011-06-301-3/+37
|
* removed the @setup_fresh_app decorator because it was messing \Chris Moylan2011-06-231-3/+5
| | | | with my fixtures.
* began work on submission test. nothing to see hereChris Moylan2011-06-211-0/+45