aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'refs/remotes/rodney757/email'Christopher Allan Webber2013-08-251-4/+4
|\
| * fix tests to use new change_email viewRodney Ewing2013-08-201-4/+4
| |
* | added test for mark all comment notifications seenRodney Ewing2013-08-201-0/+53
|/
* Switch deprecated BROKER_HOST to new BROKER_URLSebastian Spaeth2013-08-192-2/+2
| | | | | | | People will need to switch that setting in their mediagoblin.ini too. Make sure we RELEASE NOTE this. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* -skip persona test is requests is not installedRodney Ewing2013-08-191-0/+2
| | | | - should use request.urlgen for location
* fix persona tests by using a correct queryRodney Ewing2013-08-151-4/+4
|
* Merge branch 'persona_resquash'Christopher Allan Webber2013-08-152-0/+252
|\
| * merge --squash persona branch to take care of a false merge commit inRodney Ewing2013-07-032-0/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the basic_auth branch that persona is forked from Conflicts: mediagoblin/templates/mediagoblin/auth/login.html mediagoblin/templates/mediagoblin/auth/register.html mediagoblin/templates/mediagoblin/edit/edit_account.html These are commit messages from the squashed persona stuff: - added tests and fixed minor errors - fixed a redirect loop when only persona is enabled and accessing /auth/login - moved persona.js to plugin's static dir - fixes for add/remove persona emails - add and remove personas - working with multiple plugins - working version - switched to hidden form instead of ajax - beginings
* | Merge remote-tracking branch 'refs/remotes/tsyesika/master'Christopher Allan Webber2013-08-153-8/+174
|\ \ | | | | | | | | | New oauth tools! Heck yeah!
| * | Adds test for request_tokensxray72242013-07-181-7/+51
| | |
| * | Adds some tests for the OAuth and some docsxray72242013-07-161-0/+122
| | |
| * | Fixes testsxray72242013-07-142-8/+8
| | |
* | | I added a few more unitests in this commit. It now confirms that even after mi-tilly-Q2013-07-311-1/+11
| | | | | | | | | | | | -gration, there is only one of each Foundation object.
* | | In this commit I added a few unittests to account for Foundations. There weretilly-Q2013-07-311-6/+21
| | | | | | | | | | | | | | | only a few tests I had to add to mediagoblin/tests/test_sql_migrations.py beca- -use the foundation creation only happens at database initialization.
* | | Starting to write unit tests...tilly-Q2013-07-301-5/+8
|/ /
* | Skip the openid tests if the openid module is not installed.Christopher Allan Webber2013-07-141-3/+4
| | | | | | | | This commit sponsored by Brandon Smith. Thank you!
* | Merge branch 'rodney757-media_plugins'Christopher Allan Webber2013-07-122-4/+4
|\ \ | | | | | | | | | | | | | | | Conflicts: mediagoblin.ini mediagoblin/tests/test_mgoblin_app.ini
| * | Switch the import of the image media manager over to the new classChristopher Allan Webber2013-07-121-2/+2
| | | | | | | | | | | | | | | | | | | | | This helps resolve one of the remaining issues with the tests for the media type pluginification. This commit sponsored by Jeffrey Moe. Thanks Jeff! Lulzbot rocks!
| * | fixed some typos and enabled media_type plugins in testsRodney Ewing2013-07-021-2/+2
| | |
* | | Patch by Strum. Ticket #451 - Convert all mongokit style .find, .find_one, ↵Rodney Ewing2013-07-115-20/+20
| |/ |/| | | | | .one calls over to SQLAlchemy queries
* | Merge remote-tracking branch 'remotes/lotusecho/trac_711_test_speed'Christopher Allan Webber2013-07-033-6/+9
|\ \
| * | Improved test runtime from 352 seconds to 59 seconds by implementing an ↵Emily O'Leary2013-06-253-6/+9
| | | | | | | | | | | | in-memory sqlite DB and including an option to run migrations on this newly created database by adding a config option called run_migrations to the config_spec and passing it along in app.py to the setup_database function.
* | | merge --squash openid branch to take care of a false merge commit in theRodney Ewing2013-07-034-1/+415
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | basic_auth branch that openid is forked from Commits squashed together (in reverse chronological order): - do the label thing only for boolean fields - made edit_account to autofocus on the first field - added feature to render_divs where if field.label == '' then it will render form.description the same a render_label - added allow_registration check - refactored create_user - removed verification_key from create_user - removed get_user from openid - cleanup after removing openid from template_env.globals - fix for werkzueg 0.9.1 - cleanup after merge - more tests - restored openid extra_validation just for safety - tests for openid - deleted openid extra_validation - passed next parameter in session for openid - fixed a bug that was deleting the messages - implemented openid store using sqlalchemy - ask openid provider for 'nickname' to prefill username in registration form - refactored delete openid url to work with generic urls such as google and to not allow a user to delete a url if it is there only one and they don't have a pw - refactored login to register user workflow, which fixed a problem where the 'or register with a password link' wasn't showing up when the finish_login view called the register view because there wasn't any redirect. - added the ability to remove openid's - added the ability to add openids to an existing account - refactored start_login and finish_login views - modified edit_account.html to use render_divs - modified gmg/edit/views to behave appropriatly if no password authentication is enabled. moved the update email stuff to it's own funtion to make edit_account view cleaner. edit_account now modifies the form depending on the plugins. - minor typos - added retrieving email from openid provider - moved allow_registration check to a decorator - moved check if auth is enabled to a decorator - changed openid user registration to go through login first - cleanup after merge - modified verification emails to use itsdangerous tokens - added error handling on bad token, fixed route, and added tests - added support for user to change email address - added link to login view openid/password in login template - updated openid get_user function - modified get_user function to take kwargs instead of username - no need for user might be email kwarg in check_login_simple - added gen_password_hash and check_password functions to auth/__init__ - added focus to form input - made imports fully qualified - modified basic_auth.check_login to check that the user has a pw_hash first - changed occurances of form.data['whatever'] to form.whatever.data - convert tabs to spaces in register template, remove unsed templates, and fixed trans tags in templates - in process of openid login. it works, but needs major imporvements - make password field required in basic_auth form - check if password field present in basic_auth create_user - modified openid create_user function - modified models based on Elronds suggestions - changed register form action to a variable to be passed in by the view using the template - openid plugin v0, still need to authenticate via openid. - added a register_user function to be able to use in a plugin's register view, and modified auth/views.register to redirect to openid/register if appropriate. - Modified basic_auth plugin to work with modified auth plugin hooks. Added context variables. Removed basic_auth/tools which was previously renamed to basic_auth/lib. - modified auth/__init__ hooks to work better with multiple plugins. Removed auth/lib.py. And added a basic_extra_verification function that all plugins will use. - added models and migrations for openid plugin
* | Merge remote-tracking branch 'upstream/master' into authRodney Ewing2013-06-256-46/+321
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/app.py mediagoblin/auth/forms.py mediagoblin/auth/tools.py mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/edit/views.py mediagoblin/plugins/basic_auth/tools.py mediagoblin/tests/test_edit.py
| * Adding a docstring to fixture_media_entryChristopher Allan Webber2013-06-221-0/+8
| | | | | | | | | | | | | | It's not complete, but it makes clearer how to avoid errors with fake_upload :) This commit sponsored by Harper Sanford. Thank you!
| * Fix the data integrity bug in test_misc.Christopher Allan Webber2013-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | It turns out this has to do with some additions to the fixture adding of media entries. Since the new fake_upload field is True by default, adding multiple entries that have media_files at once meant that multiple additions of FileKeynames would be added at once if they were not saved at the same time. Tricky! Thankfully, Elrond helped us figure this one out. Thanks, Elrond :) And thanks also to Aapo Rantalainen for sponsoring this commit!
| * Merge remote-tracking branch 'refs/remotes/joar/notifications'Christopher Allan Webber2013-06-224-10/+238
| |\ | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| | * New notificationsJoar Wandborg2013-06-094-10/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added request.notifications - Email configuration fixes - Set config_spec default SMTP port to `0` and switch to SSL/non-SSL default if `port == 0` - Added email_smtp_use_ssl configuration setting - Added migrations for notification tables - Added __repr__ to MediaComment(Mixin) - Added MediaComment.get_entry => MediaEntry - Added CommentSubscription, CommentNotification, Notification, ProcessingNotification tables - Added notifications.task to celery init - Fixed a bug in the video transcoder where pygst would hijack the --help argument. - Added notifications - views - silence - subscribe - routes - utility methods - celery task - Added half-hearted .active comment CSS style - Added quick JS to show header_dropdown - Added fragment template to show notifications in header_dropdown - Added fragment template to show subscribe/unsubscribe buttons on media/comment pages - Updated celery setup tests with notifications.task - Tried to fix test_misc tests that I broke - Added notification tests - Added and extended tests.tools fixtures - Integrated new notifications into media_home, media_post_comment views - Bumped SQLAlchemy dependency to >= 0.8.0 since we need polymorphic for the notifications to work
| * | Removing the "enter your password to change your email" bit.Christopher Allan Webber2013-06-211-38/+0
| | | | | | | | | | | | | | | | | | | | | A good idea, though it feels fairly clumsy in the form, and I think if you're logged in you can already sabotage the user pretty well. This commit sponsored by Sergey Matveev. Thanks!
| * | modified verification emails to use itsdangerous tokensRodney Ewing2013-05-291-34/+10
| | |
| * | added error handling on bad token, fixed route, and added testsRodney Ewing2013-05-241-2/+104
| |/
* | changes after cwebb's reviewRodney Ewing2013-06-215-47/+1
| |
* | moved authentication_disabled to config_specRodney Ewing2013-06-154-7/+0
| |
* | changed no_auth to authentication_disabled in configRodney Ewing2013-06-117-17/+17
| |
* | no need for check_login with the new check_login_simple functionRodney Ewing2013-05-271-2/+3
| |
* | renamed lib to toolsRodney Ewing2013-05-271-10/+10
| |
* | moving forgot_password views back to gmg/auth and cleanupRodney Ewing2013-05-244-164/+91
| |
* | fixed failing tests after rebaseRodney Ewing2013-05-244-17/+16
| |
* | added gen_password_hash and check_password functions to auth/__init__Rodney Ewing2013-05-241-3/+3
| |
* | added tests for no_auth featureRodney Ewing2013-05-246-4/+138
| |
* | existing test all passing nowRodney Ewing2013-05-243-121/+194
| |
* | modified test .ini files and changed tests to use basic_auth bcryptRodney Ewing2013-05-245-3/+11
|/
* Full unit test for the plugin assetlink command.Christopher Allan Webber2013-05-231-1/+73
| | | | | | | | | | Tests: - if the link doesn't exist yet - if the link already exists - if it is a symlink to something else - if it exists but is not a symlink This commit sponsored by Lon Koenig. Thank you!
* test_plugin_staticdirect now works and passes.Christopher Allan Webber2013-05-232-1/+35
| | | | This commit sponsored by Samuel Vale. Thank you!
* Simple "staticstuff" plugin for writing unit tests on plugin static asset ↵Christopher Allan Webber2013-05-234-0/+94
| | | | | | | | | | | | | | | | linking. It doesn't do much... it just has a static directory with a "bunnify" CSS file and has a unit test that returns a json encoded set of a staticdirect with both this plugin enabled and also with (theoretically) a file distributed with MediaGoblin (it isn't really, but in our case that doesn't matter.) Also set up the static_setup hook / PluginStatic object for this plugin; testing that with `./bin/gmg theme assetlink` seemed to work. (And argh, need to update that command name, I know.) This commit sponsored by Bradley Kuhn. Thanks bkuhn!
* Moving test_user_dev->user_dev in plugin app configs & adding plugin static ↵Christopher Allan Webber2013-05-235-26/+25
| | | | | | | | | | | | | | | | serving The test_user_dev (as opposed to user_dev) was a legacy before we had each application running in its own directory (as they now do in pytest). Move that name to just user_dev... this is more consistent with the rest of our naming and will make writing these config files easier. (If we want to test that changing these still works, that should be a separate unit test with special config files.) Additionally, add plugin static serving to the common test paste config file. This commit sponsored by Juan Jose Marin Martinez. Thank you!
* modified change_pass testsRodney Ewing2013-05-201-7/+10
|
* piwigo: Return proper error for wrong user/password.Elrond2013-05-201-2/+4
| | | | And fix tests.
* A bit of pep8 and small typo fix.Elrond2013-05-201-1/+1
|
* Fixed EXIF testsJoar Wandborg2013-05-201-57/+318
|