Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: More instances where a fresh database is not needed | Sebastian Spaeth | 2013-01-08 | 1 | -5/+5 |
| | | | | Save test runtime by not dumping the databases when not needed. | ||||
* | Move db.sql.models* to db.models* | Sebastian Spaeth | 2013-01-07 | 1 | -1/+1 |
| | |||||
* | tests/auth: Don't rely on case sensitive error strings | Sebastian Spaeth | 2012-12-21 | 1 | -2/+2 |
| | | | | | | | | | | webob's 404 status is "404 NOT FOUND" while werkzeug's is "404 Not Found". Our test suite was checking the upper case string for equality. Just test the status error code "404" rather than the full string which might change at some points/versions and should not need to be tested. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> | ||||
* | Move DBModel._id -> DBModel.id | Sebastian Spaeth | 2012-12-21 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | We were refering to model._id in most of the code base as this is what Mongo uses. However, each use of _id required a) fixup of queries: e.g. what we did in our find() and find_one() functions moving all '_id' to 'id'. It also required using AliasFields to make the ._id attribute available. This all means lots of superfluous fixing and transitioning in a SQL world. It will also not work in the long run. Much newer code already refers to the objects by model.id (e.g. in the oauth plugin), which will break with Mongo. So let's be honest, rip out the _id mongoism and live with .id as the one canonical way to address objects. This commit modifies all users and providers of model._id to use model.id instead. This patch works with or without Mongo removed first, but will break Mongo usage (even more than before) I have not bothered to fixup db.mongo.* and db.sql.convert (which converts from Mongo to SQL) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> | ||||
* | Fix up tests | Sebastian Spaeth | 2012-12-21 | 1 | -2/+3 |
| | | | | | | | | | | | | empty find() queries would not work anymore with the simplified .find compatability code, so remove these and use proper sqlalchemy in the tests. The storage test failed because my virtualenv environment ran mediagoblin/local/mediagoblin/tests/test_storage.py and somehow decided the 2 classes are different objects. Just test against the full class name. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> | ||||
* | Prevent SQLAlchemy non-Unicode warnings from this test. | Brett Smith | 2012-07-08 | 1 | -8/+8 |
| | |||||
* | Reload the user for current values. | Elrond | 2012-03-26 | 1 | -0/+1 |
| | | | | This might not be needed, but it helped at one point. | ||||
* | It's 2012 all up in here | Christopher Allan Webber | 2012-02-02 | 1 | -1/+1 |
| | |||||
* | Fix unit tests for new forget password flow | Elrond | 2012-01-01 | 1 | -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 tests | Joar Wandborg | 2011-12-31 | 1 | -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. | ||||
* | Fixed broken confirm_password test | Joar Wandborg | 2011-12-30 | 1 | -17/+0 |
| | |||||
* | Dot-Notation for Users.fp_token_expire | Elrond | 2011-12-05 | 1 | -4/+4 |
| | |||||
* | Dot-Notation for Users.fp_verification_key | Elrond | 2011-12-05 | 1 | -1/+1 |
| | |||||
* | Dot-Notation for Users.verification_key | Elrond | 2011-12-05 | 1 | -1/+1 |
| | |||||
* | Dot-Notation for Users.status | Elrond | 2011-12-05 | 1 | -3/+3 |
| | |||||
* | Dot-Notation for Users.email_verified | Elrond | 2011-12-05 | 1 | -3/+3 |
| | |||||
* | Merge branch 'misc/fixture_add_user' | Elrond | 2011-12-04 | 1 | -6/+2 |
|\ | | | | | | | | | * misc/fixture_add_user: fixture_add_user: Factoring a unit test tool | ||||
| * | fixture_add_user: Factoring a unit test tool | Elrond | 2011-12-01 | 1 | -6/+2 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Expect 404 in unit tests, if we now use 404. | Elrond | 2011-12-02 | 1 | -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. | ||||
* | Dot-Notation for "_id" | Elrond | 2011-11-15 | 1 | -6/+6 |
| | | | | | | | | | 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. | ||||
* | Finished splitting util.py into separate files. | Aaron Williamson | 2011-10-01 | 1 | -5/+5 |
| | |||||
* | Moved common, translation, template, and url code out of util.py and into ↵ | Aaron Williamson | 2011-10-01 | 1 | -53/+53 |
| | | | | tools/[file].py | ||||
* | Merge branch 'gullydwarf-cfdv-f357_lost_password_functionality' | Christopher Allan Webber | 2011-09-08 | 1 | -0/+88 |
|\ | | | | | | | | | Conflicts: mediagoblin/auth/routing.py | ||||
| * | Updating calls to recall password URLs to respect changed routing | Christopher Allan Webber | 2011-09-07 | 1 | -6/+8 |
| | | |||||
| * | for readability, and adds unit test for expired token | Caleb Forbes Davis V | 2011-09-05 | 1 | -0/+10 |
| | | |||||
| * | added unit tests for lost password code | Caleb Forbes Davis V | 2011-09-05 | 1 | -0/+76 |
| | | |||||
* | | 508. Updates copyright/license information | Will Kahn-Greene | 2011-09-01 | 1 | -1/+1 |
|/ | |||||
* | Updating tests to reflect we redirect to the user's page after verification now. | Christopher Allan Webber | 2011-08-01 | 1 | -4/+8 |
| | |||||
* | Log in user after regitration | Christopher Allan Webber | 2011-07-29 | 1 | -0/+5 |
| | |||||
* | Redirect to the user's profile after registration | Christopher Allan Webber | 2011-07-29 | 1 | -2/+2 |
| | | | | | | | - Updated the view - Updated the tests - Fixed a weirdness in the registration view where the 'user' variable used to be called 'entry' | ||||
* | allows using messaging instead of verify_email.html to pass tests | Caleb Forbes Davis V | 2011-07-04 | 1 | -2/+2 |
| | | | | | * re-instated verification_successful flag * modified test_auth to verify nav to user_pages/user.html template | ||||
* | added test coverage for redirecting after login with the next param | Chris Moylan | 2011-06-19 | 1 | -2/+12 |
| | |||||
* | Added tests for all sorts of login form abuse. | Chris Moylan | 2011-06-19 | 1 | -6/+76 |
| | | | | Added tests for log out | ||||
* | logins are now somewhat tested | Chris Moylan | 2011-06-17 | 1 | -5/+43 |
| | |||||
* | mediagoblin.globals->mediagoblin.mg_globals | Christopher Allan Webber | 2011-06-12 | 1 | -5/+5 |
| | |||||
* | A setup_fresh_app decorator which should make writing tests a bit easier. | Christopher Allan Webber | 2011-06-06 | 1 | -5/+3 |
| | | | | Setting test_register_views() to use it also. | ||||
* | 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 |
| | |||||
* | Just a bit of formatting for these unfinished tests ;) | Christopher Allan Webber | 2011-06-05 | 1 | -2/+4 |
| | |||||
* | 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. :) | ||||
* | Changes Mediagoblin -> MediaGoblin. | Will Kahn-Greene | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | Also make sure the auth system successfully returns False when login | Christopher Allan Webber | 2011-04-02 | 1 | -2/+12 |
| | | | | failboats. | ||||
* | Unit tests for our bcrypt auth stuff. Our first tests! | Christopher Allan Webber | 2011-04-02 | 1 | -0/+49 |