aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* fixed some typos and enabled media_type plugins in testsRodney Ewing2013-07-021-2/+2
|
* 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
|
* Merge remote-tracking branch 'refs/remotes/elrond/misc/pytest_enable_testing'Christopher Allan Webber2013-05-172-2/+28
|\
| * Always activate testing using pytest fixture.Elrond2013-05-172-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | This is possibly the cleaner approach to the problem solved in the previous commit. The previous commit makes sure, that testing is enabled at import time. While this one enables it just before the individual test is run. So this one takes a bit more CPU. Maybe revert the previous commit? References: 0536306048daa0970d2e43411ba2a9bf073e570e
* | Reverting "Always activate testing in every test module ever."Christopher Allan Webber2013-05-1726-89/+1
|/ | | | | | Revert "Always activate testing in every test module ever." This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e.
* Always activate testing in every test module ever.Christopher Allan Webber2013-05-1626-1/+89
| | | | Kind of a dorky way to implement this, but...
* Merge branch '623_context_hooks'Christopher Allan Webber2013-05-156-0/+160
|\
| * Testing the template_context_prerender hookChristopher Allan Webber2013-05-155-5/+17
| | | | | | | | | | | | | | | | | | | | | | This allows for modifying any context *right before render*, including access to the variables that are passed in. This test takes advantage of that and takes one of the variables, "doubleme", and modifies it (doubles it!) In our case it turns "happy" and "joy" into "happyhappy" and "joyjoy". This commit sponsored by Mark Holmquist. Thank you!
| * Documenting the test_modify_context and context_modified_app methodsChristopher Allan Webber2013-05-141-0/+7
| |
| * Fully working context hooks, both template/view and global level, with testsChristopher Allan Webber2013-05-145-2/+105
| | | | | | | | | | | | Needs documentation though... that's coming next :) This commit sponsored by Luca Tius. Thanks Luca!
| * Merge branch 'master' into 623_context_hooksChristopher Allan Webber2013-05-125-42/+14
| |\
| * | Ah right, and here's the config we intend to use for these context modified ↵Christopher Allan Webber2013-05-081-0/+26
| | | | | | | | | | | | | | | | | | tests :) This commit sponsored by Xavier Gulliot. Thanks Xavier!
| * | The beginning of context hooks.Christopher Allan Webber2013-05-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not the working solution, but getting there conceptually. Basically we'll have a key with the view and the template as a tuple which is the context hook that anyone can attach to. However, some changes have still to be made: - The unit test doesn't work yet and contains a set_trace ;) - We'll probably switch the "view" component from being the callable to the "urlgen"'able name per Elrond's suggestion - Found a bug in unit tests related to running custom apps for different configs... hm. I need to fix this! Nonetheless, making progress. This commit sponsored by... wait a minute... Christopher Webber?!
* | | piwigo: Start first tests.Elrond2013-05-122-1/+70
| |/ |/| | | | | | | This first test checks the session logic of the piwigo plugin. login, logout, getStatus.
* | Removing reference to nose (thanks for catching, Elrond!)Christopher Allan Webber2013-05-121-3/+1
| | | | | | | | This commit sponsored by Kevin McCarthy. Thank you!
* | Tests should no longer use the environment-variable-related-setup and set up ↵Christopher Allan Webber2013-05-123-35/+1
| | | | | | | | | | | | | | | | | | in app instead This should remove a bunch of confusing cruft. I hate using that environment variable! Also that old code was fragile. This commit sponsored by Stephen Milton. Thanks!
* | Merge remote-tracking branch 'gabithume/146_debug_message'Christopher Allan Webber2013-05-111-4/+12
|\ \ | |/ |/|
| * Fixing ticket #146 - Make messaging system testableGabi Thume2013-04-291-4/+12
| |
* | Unit tests for plugins defining their own config_spec.ini!Christopher Allan Webber2013-05-084-0/+76
|/ | | | This commit sponsored by David Ahmed. Thank you!
* image resizing: Refactor some decisions into resize_tool.Elrond2013-04-271-1/+1
| | | | | | | Loading the thumb/medium sizes from the config, saving things to the db, and loading the image is now all done by resize_tool. It still calls resize_image for the actual work.
* Unit test for ReallyLazyProxy.Elrond2013-04-251-0/+22
| | | | | | | LazyProxy caches its value. So create a unit test for lazy_pass_to_ugettext to make sure its returned proxy actually gives a different translation when the locale is switched.
* Cleanup storage after test, and test .delete_dir().Elrond2013-04-212-7/+26
| | | | | | | | | | | | The storage tests work in the system's tmpdir. The python docs say, we should clean up after using things. Yes the directory should be cleaned up on reboot, but if running tests a lot, the tmpdir could fill up, so we should really cleanup. So use the new .delete_dir() on the storage interface to cleanup test dirs and get them finally removed with os.rmdir. All nicely packed into cleanup_storage().
* Refactor test configs.Elrond2013-04-201-24/+13
| | | | All the hook_* tests use the same config, so refactor it.
* Let's not use reserved keywords :)Christopher Allan Webber2013-04-191-2/+2
|