aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_mgoblin_app.ini
Commit message (Collapse)AuthorAgeFilesLines
* Remove requirement that audio/video dependencies must be installed for testsChristopher Allan Webber2016-03-181-3/+4
| | | | | | | Some tests were added for running audio and video submission tests in test_submission.py. Unfortunately these were not skipped if these dependencies were not installed. This patch attempts to fix that while leaving the tests intact.
* Merge remote-tracking branch 'refs/remotes/breton/new_gst10'Christopher Allan Webber2015-02-181-0/+2
|\
| * added a/v submission testingBoris Bobrov2015-02-161-0/+2
| |
* | Remove deprecated oauth 2 pluginJessica Tallon2015-02-151-1/+0
|/
* added testsRodney Ewing2013-08-261-0/+2
|
* fixed tests and defaultsRodney Ewing2013-08-261-0/+2
|
* Switch deprecated BROKER_HOST to new BROKER_URLSebastian Spaeth2013-08-191-1/+1
| | | | | | | 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>
* Merge branch 'rodney757-media_plugins'Christopher Allan Webber2013-07-121-2/+2
|\ | | | | | | | | | | Conflicts: mediagoblin.ini mediagoblin/tests/test_mgoblin_app.ini
| * fixed some typos and enabled media_type plugins in testsRodney Ewing2013-07-021-2/+2
| |
* | Merge remote-tracking branch 'remotes/lotusecho/trac_711_test_speed'Christopher Allan Webber2013-07-031-2/+3
|\ \
| * | Improved test runtime from 352 seconds to 59 seconds by implementing an ↵Emily O'Leary2013-06-251-2/+3
| | | | | | | | | | | | 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-031-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | moved authentication_disabled to config_specRodney Ewing2013-06-151-1/+0
| |
* | changed no_auth to authentication_disabled in configRodney Ewing2013-06-111-1/+1
| |
* | modified test .ini files and changed tests to use basic_auth bcryptRodney Ewing2013-05-241-0/+2
|/
* Moving test_user_dev->user_dev in plugin app configs & adding plugin static ↵Christopher Allan Webber2013-05-231-5/+5
| | | | | | | | | | | | | | | | 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!
* piwigo: Start first tests.Elrond2013-05-121-1/+1
| | | | | This first test checks the session logic of the piwigo plugin. login, logout, getStatus.
* Tests should no longer use the environment-variable-related-setup and set up ↵Christopher Allan Webber2013-05-121-4/+0
| | | | | | | | | 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!
* add pdf media typeAlon Levy2013-04-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | The new media type supports pdf and a subset of media recognized by libreoffice via unoconv. Every document added goes through: * conversion to pdf with unoconv if not already a pdf * creation of thumbnail and medium sized image, and pdfinfo generates some information (even for unoconv produces docs - should fix this) Poppler (pdftocairo, pdfinfo) is used. http://poppler.freedesktop.org/ A working but uglified pdf.js integration exists, which is enabled by setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini) Adds one test to the test_submission test suite, and another separate test_pdf suite. The tests are only run if media_types.pdf.processing.check_prerequisites passes, so the test suite will not require any extra package. TODO: make test suite say 'skipped' in that case instead of just 'ok' Signed-off-by: Alon Levy <alon@pobox.com>
* Remove the last traces of beaker.Elrond2013-04-091-4/+0
| | | | | | | | There were still some traces of beaker around: - docs: replaced by reference to itsdangerous. - paste configs: Wiped away. - config_spec.ini: wiped. - test_mgoblin_app.ini: also wiped.
* Added API testsJoar Wandborg2012-12-231-0/+2
|
* Added tests for HTTP callbacksJoar Wandborg2012-09-271-0/+1
|
* Added some OAuth plugin testsJoar Wandborg2012-09-261-0/+3
|
* Suggest we move to an in-memory database ;)Christopher Allan Webber2012-03-261-1/+1
|
* SQL based tests and refactored Celery setup stuffChristopher Allan Webber2012-03-261-1/+5
| | | | | | - Changed config files of test configs to use SQL - Updated celery initialization tools, factored them to be able to use the "big instance" application stuff
* Fix tests given recent celery "case" changeChristopher Allan Webber2012-02-281-1/+1
|
* Test Suite: Enable attachments, add failing testElrond2012-01-101-0/+3
| | | | | | | | | 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.
* * Feature #678: Drop custom delimiters in tagsManuel Urbano Santos2011-11-271-1/+0
| | | | | | | * 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.
* 591: Let Testing Middleware check for staticdirect() usageElrond2011-10-191-1/+1
| | | | | | | | | 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.
* Turning on caching for mediagoblin testing after all?Christopher Allan Webber2011-09-051-1/+2
| | | | Maybe we'll add a way to toggle this.
* Basic beaker caching functionality added to the application.Christopher Allan Webber2011-08-231-0/+3
|
* 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-211-3/+7
|
* Removing option to make tags lowercaseChristopher Allan Webber2011-07-301-1/+0
| | | | ...that's basically handled by the slugification
* Adds tag unit testingCaleb Forbes Davis V2011-07-291-0/+5
| | | | | | | | | - 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
* Move mediagoblin.celery_setup -> mediagoblin.init.celeryElrond2011-07-021-1/+1
| | | | | | As the first target of the new .init. submodule move celery_setup there. Quite straight forward, just a lot of places to change.
* Celery wasn't really being properly connected during tests.Christopher Allan Webber2011-06-261-2/+5
| | | | | | | | | | | | | | | Lots of fixes to do this. - setup_celery_from_config no longer responsible for checking 'celery_setup_elsewhere'; that's the app's job. (This was a problem because more than the app was relying on using this function) - Allow us to specifically set the config file we're setting up celery from with setup_self - Set up celery_always_eager. This is something we strongly want while doing tests. - Instead of setting up the app in the get_test_app method, let's set that up simply by importing from_tests, which should itself up via from_celery being the environment variable being set.
* Nosetests should now be able to run using the new configobj / app init setupChristopher Allan Webber2011-06-181-0/+12
Lots of changes: - CELERY_CONFIG_FILE does not need to be set to the from_tests module to run tests anymore, in fact it *should not be set at all* and is specifically forbidden. - moved around the configuration to the new 2-file format - and generally adjusting the code appropriately.