aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_mgoblin_app.ini
Commit message (Collapse)AuthorAgeFilesLines
* 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.