aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Bug #685: Add failing unit testElrond2011-12-031-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The simplest way to reproduce Bug #685 is to ask for a non existent page. This should return a proper 404. It currently doesn't. So add a unit test exactly for this. This unit test fails currently! It will fail until the bug gets fixed.
* | | | Expect 404 in unit tests, if we now use 404.Elrond2011-12-021-4/+4
| |/ / |/| | | | | | | | | | | | | | | | | | | | Our unit tests for auth were expecting a 400. Well, now we give a 404. So expect that! I'm not completely sure, if the 404 is the right thing here, but that's another topic.
* | | Issue 680 Allow decorating views to prevent CSRF protection.Nathan Yergler2011-11-261-1/+20
| | |
* | | Add base class for MeddlewareElrond2011-11-251-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Created a BaseMeddleware which all Meddleware should derive from. This is not strictly needed, but will greatly help. The base class has the common __init__ of all the other Meddlwares and fall backs for all hooks. That way a new Meddlware only needs to override what it actually wants to implement.
* | | Rename MediaGoblin middleware to meddleware to avoid confusion w/ wsgi ↵Christopher Allan Webber2011-11-251-5/+5
| | | | | | | | | | | | | | | | | | middleware hehehehehe, "meddleware"
* | | Fixes after merging video into master - part 2Joar Wandborg2011-11-212-5/+5
|/ / | | | | | | | | | | - Added handling of InvalidFileType to submit.views - Updated test_celery_setup and test_submission tests to reflect the changes to the media procesing infrastructure
* | Tests for StorageInterface*.copy_local_to_storage()Christopher Allan Webber2011-11-201-0/+27
| |
* | added unittests, now using form errors and fixed bug when no GET parameter ↵Jakob Kramer2011-11-201-0/+112
|/ | | | is given for /edit/profile/
* Dot-Notation for "_id"Elrond2011-11-152-9/+9
| | | | | | | | | 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.
* Merge branch 'idea/check_mgoblin_static'Elrond2011-11-123-2/+54
|\ | | | | | | | | | | | | * idea/check_mgoblin_static: Move TestingMiddleware to tests/tools.py Some docs for the TestingMiddleware 591: Let Testing Middleware check for staticdirect() usage
| * Move TestingMiddleware to tests/tools.pyElrond2011-11-121-1/+45
| | | | | | | | | | This middleware isn't needed outside of the tests, so let's just put it there.
| * Some docs for the TestingMiddlewareElrond2011-11-121-0/+2
| | | | | | | | | | To make the TestingMiddleware actually more useful in the future, start to document it.
| * 591: Let Testing Middleware check for staticdirect() usageElrond2011-10-193-2/+8
| | | | | | | | | | | | | | | | | | All references to static, shipped content should go via request.staticdirect(). So insert a TestingMiddleware in the chain, which tests for this on all requests/reponses happening in the test suite. It's a simple text search for a bogus usage pattern.
* | Change unit tests to use add_table_fieldElrond2011-10-221-4/+2
|/ | | | | | One of the test migrations adds a field. So rewrite it to use the new add_table_field helper function. This is a good test for it.
* Hotfix: Renaming cookie broke unit testsElrond2011-10-161-1/+3
| | | | | | | | The name of the cookie was hardcoded in the unit tests and while renaming the cookie this part was missed. So now read the cookie_name from the config in the test. This also tests for the config item existing!
* Merge remote branch 'remotes/aaronw/bug444_fix_utils_py_redux'Christopher Allan Webber2011-10-016-114/+112
|\ | | | | | | | | Conflicts: mediagoblin/util.py
| * Finished splitting util.py into separate files.Aaron Williamson2011-10-014-26/+24
| |
| * Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-014-94/+94
| | | | | | | | tools/[file].py
* | #361 Unit tests for CSRF MiddlewareNathan Yergler2011-10-011-0/+69
|/
* Feature #587 - Split storage.py into submodulesJoar Wandborg2011-09-121-3/+3
| | | | | | | | | * Removed storage.py * Created submodules for filestorage, cloudfiles, mountstorage * Changed test_storage to reflect the changes made in the storage module structure * Added mediagoblin.storage.filestorage.BasicFileStorage as a default for both publicstore and queuestore's `storage_class`
* Merge branch 'gullydwarf-cfdv-f357_lost_password_functionality'Christopher Allan Webber2011-09-081-0/+88
|\ | | | | | | | | Conflicts: mediagoblin/auth/routing.py
| * Updating calls to recall password URLs to respect changed routingChristopher Allan Webber2011-09-071-6/+8
| |
| * for readability, and adds unit test for expired tokenCaleb Forbes Davis V2011-09-051-0/+10
| |
| * added unit tests for lost password codeCaleb Forbes Davis V2011-09-051-0/+76
| |
* | Merge branch 'i507_beaker_cache'Christopher Allan Webber2011-09-052-0/+56
|\ \
| * | Turning on caching for mediagoblin testing after all?Christopher Allan Webber2011-09-051-1/+2
| | | | | | | | | | | | Maybe we'll add a way to toggle this.
| * | Caching test... pretty basic.Christopher Allan Webber2011-09-051-0/+52
| | |
| * | Basic beaker caching functionality added to the application.Christopher Allan Webber2011-08-231-0/+3
| |/
* | 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-0115-15/+15
| |
* | 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
|/
* Static serving in test_paste.ini wasn't pointing at test_user_dev eitherChristopher Allan Webber2011-08-231-1/+1
| | | | | Not that it matters too much, but... should point it to the right place :)
* Must switch queuestore_base_dir -> base_dir in test_mgoblin_app.iniChristopher Allan Webber2011-08-231-1/+1
|
* Updating tests for new storage config codeChristopher Allan Webber2011-08-212-15/+16
|
* Malicious uploads test with fake but not really image files working! :)Christopher Allan Webber2011-08-141-23/+36
|
* get_test_app() should turn on testing bucketsChristopher Allan Webber2011-08-011-0/+3
|
* Updating tests to reflect we redirect to the user's page after verification now.Christopher Allan Webber2011-08-011-4/+8
|
* Updating tests to reflect not having a 'tags_case_sensitive' option.Christopher Allan Webber2011-07-301-7/+0
| | | | I should probably update the tags of things when I change them.
* Removing option to make tags lowercaseChristopher Allan Webber2011-07-301-1/+0
| | | | ...that's basically handled by the slugification
* Merge remote branch 'remotes/gullydwarf-cfdv/f360_tagging' into mergetagsChristopher Allan Webber2011-07-303-0/+101
|\ | | | | | | | | Conflicts: mediagoblin/tests/test_submission.py
| * Adds tag unit testingCaleb Forbes Davis V2011-07-298-0/+260
| | | | | | | | | | | | | | | | | | - 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
* | Log in user after regitrationChristopher Allan Webber2011-07-291-0/+5
| |
* | Redirect to the user's profile after registrationChristopher Allan Webber2011-07-291-2/+2
| | | | | | | | | | | | | | - Updated the view - Updated the tests - Fixed a weirdness in the registration view where the 'user' variable used to be called 'entry'
* | Finished the docstring of the creature_add_magical_powers fake migrationChristopher Allan Webber2011-07-171-1/+2
| |
* | Merge remote branch 'remotes/cmoylan/test_submission_views_365'Christopher Allan Webber2011-07-166-0/+157
|\ \
| * | Merge branch 'master' into test_submission_views_365Chris Moylan2011-07-101-2/+2
| |\|
| * | added suggestions as per http://bugs.foocorp.net/issues/365#note-9Chris Moylan2011-07-101-47/+41
| | |
| * | finished basic submission testingChris Moylan2011-07-056-12/+94
| | |
| * | Merge branch 'master' into test_submission_views_365Chris Moylan2011-07-054-9/+9
| |\ \