Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | resize_image: Refactor config loading a small bit. | Elrond | 2013-04-21 | 1 | -7/+4 |
| | | | | Well, get the config into a local variable, for easier access. | ||||
* | Cleanup storage after test, and test .delete_dir(). | Elrond | 2013-04-21 | 2 | -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(). | ||||
* | Merge remote-tracking branch 'remotes/npigeon/ticket-601' | Christopher Allan Webber | 2013-04-20 | 1 | -1/+1 |
|\ | |||||
| * | Changed the max character length for tags on media to 255. Only had to ↵ | nattily pigeonfowl | 2013-04-16 | 1 | -1/+1 |
| | | | | | | | | | | | | change one line in mediagoblin/config_spec.ini in response to isses.mediagoblin.org/ticket/601 | ||||
* | | bumping image quality to 90, after conversation with Elrond | Christopher Allan Webber | 2013-04-20 | 1 | -1/+1 |
| | | |||||
* | | Bumping the default image quality up to 85. | Christopher Allan Webber | 2013-04-20 | 1 | -1/+1 |
| | | |||||
* | | image quality can be set in config file | dunkyp | 2013-04-20 | 2 | -3/+6 |
| | | | | | | | | | | (cherry-picked from https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality) | ||||
* | | Refactor test configs. | Elrond | 2013-04-20 | 1 | -24/+13 |
| | | | | | | | | All the hook_* tests use the same config, so refactor it. | ||||
* | | removing old callable utilities and porting stuff over. | Christopher Allan Webber | 2013-04-19 | 5 | -76/+8 |
| | | |||||
* | | Let's not use reserved keywords :) | Christopher Allan Webber | 2013-04-19 | 1 | -2/+2 |
| | | |||||
* | | changing the things to document in api.rst | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | | |||||
* | | Added new tests to test hook_transform() | Christopher Allan Webber | 2013-04-19 | 4 | -3/+32 |
| | | |||||
* | | we should be returning the result, not None! | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | | |||||
* | | Adjusting tests to use hook_handle and hook_runall | Christopher Allan Webber | 2013-04-19 | 1 | -16/+17 |
| | | |||||
* | | fixing hook_handle for when result is never assigned, avoid reference ↵ | Christopher Allan Webber | 2013-04-19 | 1 | -0/+2 |
| | | | | | | | | without assignent | ||||
* | | As Elrond points out, we might as well .pop() default_handler | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | | |||||
* | | Hooks: the Next Generation! | Christopher Allan Webber | 2013-04-19 | 1 | -0/+90 |
| | | | | | | | | I have not tested any of this but it looks right ;) | ||||
* | | A warning about the plugin API being unstable. | Christopher Allan Webber | 2013-04-19 | 1 | -0/+9 |
| | | |||||
* | | And... pyblosxom code removed again :) | Christopher Allan Webber | 2013-04-19 | 1 | -114/+0 |
| | | | | | | | | We agreed on a new direction on IRC last night... | ||||
* | | pyblosxom run_callback hoisted | Christopher Allan Webber | 2013-04-18 | 1 | -0/+114 |
| | | |||||
* | | Moving the rest of the relevant tests to have test_app set up in "def ↵ | Christopher Allan Webber | 2013-04-18 | 2 | -58/+50 |
| | | | | | | | | setup()" as well | ||||
* | | at pytest author's advice, changing the way _setup back to -> setup | Christopher Allan Webber | 2013-04-18 | 1 | -37/+15 |
| | | | | | | | | | | They showed me how to use @pytest.fixture, which allowed us to pass the test into setup! | ||||
* | | piwigo: Send NotImplemented for unknown methods. | Elrond | 2013-04-18 | 1 | -3/+2 |
| | | | | | | | | That's somewhat, what piwigo does. | ||||
* | | Use check_file_field in pwg_images_addSimple. | Elrond | 2013-04-18 | 1 | -0/+4 |
| | | |||||
* | | Start to use six for basestring. | Elrond | 2013-04-18 | 3 | -3/+6 |
| | | | | | | | | | | | | six allows us to smoothly get more forward compatible with py3. The idea is to change things over to use six, when/if we feel a need for it. | ||||
* | | stl:blender_render() - Remove useless arg_string. | Elrond | 2013-04-17 | 1 | -2/+0 |
| | | |||||
* | | Fixing typo in calling render_http_exception | Christopher Allan Webber | 2013-04-17 | 1 | -1/+1 |
| | | |||||
* | | ppoppler -> poppler tyop fix | Christopher Allan Webber | 2013-04-17 | 1 | -1/+1 |
| | | |||||
* | | Turning image's media manager into a new style class. | Elrond | 2013-04-17 | 2 | -12/+12 |
| | | | | | | | | | | images are the first media type to use the new style class based media manager. | ||||
* | | Add sniff_handler method to mediamanagers. | Elrond | 2013-04-17 | 1 | -2/+11 |
| | | | | | | | | | | | | The MediaManagerBase gets a fallback "return False" one. The Compat-Manager checks in the dict and calls that one or returns False. | ||||
* | | Add MediaManagerBase class. | Elrond | 2013-04-17 | 1 | -0/+16 |
| | | | | | | | | | | This is the base class for all new style class based media managers. | ||||
* | | MediaManager: Use .foo instead of ['foo']. | Elrond | 2013-04-17 | 3 | -6/+7 |
| | | | | | | | | To make .media_fetch_order work, create a property. | ||||
* | | First step towards a MediaManager class: Compat one. | Elrond | 2013-04-17 | 3 | -4/+32 |
| | | | | | | | | | | | | To get us moving towards a MediaManager class, the first idea is to create a class that wraps our current dict based manager and makes all users happy. | ||||
* | | update documentation for s/nose/py.test/ | Alon Levy | 2013-04-17 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Alon Levy <alon@pobox.com> | ||||
* | | PIL: Support systems with Pillow and without | Alon Levy | 2013-04-17 | 8 | -11/+34 |
| | | | | | | | | | | | | | | Fixes for systems with Pillow, but leaves a "try: except ImportError" to support anything that doesn't have a PIL top level import. Signed-off-by: Alon Levy <alon@pobox.com> | ||||
* | | pdf/processing.py: don't use check_output, only in python>=2.7 | Alon Levy | 2013-04-17 | 1 | -9/+14 |
| | | | | | | | | Signed-off-by: Alon Levy <alon@pobox.com> | ||||
* | | Refactor test resources into new resources.py | Elrond | 2013-04-17 | 5 | -55/+47 |
| | | |||||
* | | PDF: Use pytest.mark.skipif for skipping tests | Elrond | 2013-04-16 | 2 | -5/+4 |
| | | | | | | | | | | | | | | | | | | | | Instead of leaving test early if they can not run, use the pytest.mark.skipif marked to tell the test system not to even run the test. This also adds to the stats, because skipped tests are counted differently. Thus making it obvious, that some tests did not run, because of any reason. | ||||
* | | Switch to an apparently newer version of pdf.js per irc.mozilla.org #pdfjs ↵ | Christopher Allan Webber | 2013-04-16 | 1 | -0/+0 |
|/ | | | | recommendations | ||||
* | test_timesince() doesn't need a complete test_app. | Elrond | 2013-04-16 | 1 | -1/+1 |
| | |||||
* | Removing unused imports | Christopher Allan Webber | 2013-04-15 | 1 | -5/+0 |
| | |||||
* | Removing unused imports and an unused media_files dict reference | Christopher Allan Webber | 2013-04-15 | 1 | -4/+0 |
| | |||||
* | pdf: use pdf.js in an iframe | Alon Levy | 2013-04-15 | 1 | -203/+3 |
| | |||||
* | add pdf media type | Alon Levy | 2013-04-15 | 17 | -1/+5837 |
| | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | document submodule usage | Alon Levy | 2013-04-14 | 1 | -0/+13 |
| | | | | Signed-off-by: Alon Levy <alon@pobox.com> | ||||
* | Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin | Christopher Allan Webber | 2013-04-13 | 7 | -101/+297 |
|\ | |||||
| * | Merge remote-tracking branch 'joar-github/oauth/refresh_tokens' | Nathan Yergler | 2013-04-13 | 7 | -101/+297 |
| |\ | | | | | | | | | | This merges the patch for Issue #548. | ||||
| | * | OAuth: Support refresh tokens, etc | Joar Wandborg | 2013-04-06 | 7 | -102/+297 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially I was going to write a failing test for refresh tokens. Thus this fix includes an orphaned 'expect_failure' method in test utils. I ended up writing support for OAuth refresh tokens, as well as a lot of cleanup (hopefully) in the OAuth plugin code. **Rebase**: While waiting for this stuff to be merged, the testing framework changed, it comes with batteries included regarding fails. Removed legacy nosetest helper. Also added a lot of backref=backref([...], cascade='all, delete-orphan') | ||||
* | | | Merge remote-tracking branch 'refs/remotes/tsyesika/599-allow-email-login' | Christopher Allan Webber | 2013-04-13 | 2 | -4/+12 |
|\ \ \ | |/ / |/| | | |||||
| * | | Allows you to use your username or email to login | Jessica T | 2013-04-12 | 2 | -4/+12 |
| | | |