aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_pdf.py
Commit message (Collapse)AuthorAgeFilesLines
* pdf tests: use our own pdf doc as GOOD_PDFAlon Levy2014-09-261-11/+17
| | | | remove non distributable good.pdf
* Fix another tests.Berker Peksag2014-08-071-2/+3
| | | | (forgot to commit earlier)
* Reverting "Always activate testing in every test module ever."Christopher Allan Webber2013-05-171-3/+0
| | | | | | 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-161-0/+3
| | | | Kind of a dorky way to implement this, but...
* Refactor test resources into new resources.pyElrond2013-04-171-1/+1
|
* PDF: Use pytest.mark.skipif for skipping testsElrond2013-04-161-3/+2
| | | | | | | | | | 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.
* Removing unused importsChristopher Allan Webber2013-04-151-5/+0
|
* add pdf media typeAlon Levy2013-04-151-0/+45
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>