aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Insert migration objects round 3Christopher Allan Webber2012-01-291-0/+87
| |
* | Wrote some (semi-silly) descriptions of each migrationChristopher Allan Webber2012-01-291-0/+18
| |
* | Docstrings for stage 2 migrationsChristopher Allan Webber2012-01-291-0/+19
| |
* | Theoretical full set of migration2 objects to insert for testingChristopher Allan Webber2012-01-291-1/+76
| |
* | Insert migration1 objects. Also, Level1 id from Integer->UnicodeChristopher Allan Webber2012-01-291-7/+43
| |
* | All theoretical migrations written!Christopher Allan Webber2012-01-291-5/+25
| |
* | binding migration metadata to engine, and level_exits_new_table should now workChristopher Allan Webber2012-01-291-6/+6
| |
* | More test migration work. Closing to working migrations for set 2...Christopher Allan Webber2012-01-291-5/+62
| | | | | | | | Also, this file is written in 2012, correct that ;)
* | Might as well call it "set2 migrations"Christopher Allan Webber2012-01-291-1/+1
| |
* | A theoretical set of models to migrate about with, plus one migration ;)Christopher Allan Webber2012-01-291-0/+177
|/
* Resized a test_exif test image. 1.9M is unnecessarily large.Joar Wandborg2012-01-281-0/+0
|
* Acts on feedback from ChrisJoar Wandborg2012-01-255-0/+207
| | | | | | | - Added EXIF tests - Removed pdb from image processing "ifmain" - Fixed comment typo in image processing - Removed unused import in tools.exif
* Test Suite: Enable attachments, add failing testElrond2012-01-102-0/+17
| | | | | | | | | attachments are an optional part. But it doesn't hurt to enable them in the test suite at all. Also (with enabled attachmemtns) the main media view fails, if one isn't logged in (joar found it!). So add a simple (currently failing) test for this.
* Fix Unit Tests for new password changingElrond2012-01-051-8/+4
|
* Dot-Notation for MediaEntry.stateElrond2012-01-041-2/+2
|
* Fix unit tests for new forget password flowElrond2012-01-011-1/+1
| | | | | | | | After changing the password, the login page is now shown. It contains a message. (we can't test for that easily currently. There is a bug open on this problem.) At least for the login page being shown now.
* Fixed submission error handling and broken testsJoar Wandborg2011-12-311-2/+2
| | | | | | - Fixed broken test_auth test - Fixed error handling on submission, it now raises the exception if it is not explicitly relevant to file submission.
* Merge remote branch 'remotes/joar/tests'Elrond2011-12-311-17/+0
|\ | | | | | | | | * remotes/joar/tests: Fixed broken confirm_password test
| * Fixed broken confirm_password testJoar Wandborg2011-12-301-17/+0
| |
* | 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.
* Move db/migrations.py -> db/mongo/migrations.pyElrond2011-12-201-1/+1
| | | | And change references.
* Move db/util.py -> db/mongo/util.pyElrond2011-12-201-1/+1
| | | | | - Change some reference - Provide a wrapper db/util.py
* Dot-Notation: tests/test_edit.pyElrond2011-12-051-4/+4
| | | | | convert tests/test_edit.py over to Dot-Notation. It only accesses the User object.
* Dot-Notation for Users.fp_token_expireElrond2011-12-051-4/+4
|
* Dot-Notation for Users.fp_verification_keyElrond2011-12-051-1/+1
|
* Dot-Notation for Users.verification_keyElrond2011-12-051-1/+1
|
* Dot-Notation for Users.statusElrond2011-12-051-3/+3
|
* Dot-Notation for Users.email_verifiedElrond2011-12-051-3/+3
|
* Dot-Notation for Users.pw_hashElrond2011-12-051-1/+1
|
* Dot-Notation for Users.emailElrond2011-12-051-1/+1
|
* Dot-Notation for Users.usernameElrond2011-12-052-3/+3
|
* 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
* \ Merge branch 'misc/fixture_add_user'Elrond2011-12-044-32/+26
|\ \ | | | | | | | | | | | | * misc/fixture_add_user: fixture_add_user: Factoring a unit test tool
| * | fixture_add_user: Factoring a unit test toolElrond2011-12-014-32/+26
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge remote branch 'remotes/manolinux/671_spaces_in_tag_list_edit'Elrond2011-12-032-9/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | * remotes/manolinux/671_spaces_in_tag_list_edit: * Feature #678: Drop custom delimiters in tags * Eliminate the definition of the tag delimiter for tests. * Remove a test that was related to custom tags delimiter. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read * Modify a test to include this space. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma. * Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
| * | | * Feature #678: Drop custom delimiters in tagsManuel Urbano Santos2011-11-272-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Eliminate the definition of the tag delimiter for tests. * Remove a test that was related to custom tags delimiter. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read * Modify a test to include this space.
* | | | 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.