Pillow/Tests
wiredfool 05a169d65c J2k DOS fix -- CVE-2014-3598
Found and reported by Andrew Drake of dropbox.com
2014-08-14 15:38:12 -07:00
..
fonts Removing buffer from imagefont 2013-04-25 18:48:43 +02:00
icc py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
images updated imagedraw tests 2014-06-30 15:03:57 -07:00
bench_cffi_access.py Convert bench_cffi_access.py to use unittest and helper.py 2014-06-25 12:19:27 +03:00
bench_get.py Remove last dependencies on tester.py and remove file 2014-06-25 12:46:52 +03:00
check_icns_dos.py Icns DOS fix -- CVE-2014-3589 2014-08-12 11:38:52 -07:00
check_j2k_dos.py J2k DOS fix -- CVE-2014-3598 2014-08-14 15:38:12 -07:00
crash_ttf_memory_error.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
helper.py Skip Known Bad Tests 2014-07-24 22:23:11 -07:00
import_all.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
large_memory_numpy_test.py Don't import unittest because it's done in helper 2014-06-30 23:20:12 -07:00
large_memory_test.py Don't import unittest because it's done in helper 2014-06-30 23:20:39 -07:00
make_hash.py flake8 Tests/make_hash.py 2014-06-25 12:25:51 +03:00
README.rst Fix error(s) 2014-06-27 08:45:39 -04:00
show_icc.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
show_mcidas.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_000_sanity.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_bmp_reference.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_cffi.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_decompression_bomb.py Fix path 2014-06-23 14:38:03 -04:00
test_file_bmp.py Addes tests 2014-06-28 23:22:52 +02:00
test_file_eps.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_fli.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_gif.py Skip tests if external commands aren't found 2014-06-27 19:11:01 -04:00
test_file_icns.py Known Bad tests -- skipping jpeg2k tests on travis on OSX 2014-07-24 22:23:27 -07:00
test_file_ico.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_jpeg.py Skip tests if external commands aren't found 2014-06-27 19:11:01 -04:00
test_file_jpeg2k.py Known Bad tests -- skipping jpeg2k tests on travis on OSX 2014-07-24 22:23:27 -07:00
test_file_libtiff_small.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_libtiff.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_msp.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_pcx.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_pdf.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_png.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_ppm.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_psd.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_spider.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_tar.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_tiff_metadata.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_tiff.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_webp_alpha.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_webp_lossless.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_webp_metadata.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_webp.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_xbm.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_xpm.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_font_bdf.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_font_pcf.py Thread and race condition safe tempfiles for testing 2014-06-30 15:22:36 -07:00
test_format_lab.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_array.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_convert.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_image_copy.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_crop.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_draft.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_image_filter.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_frombytes.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getbands.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getbbox.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getcolors.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getdata.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getextrema.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getim.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getpalette.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getpixel.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getprojection.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_histogram.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_load.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_image_mode.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_offset.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_point.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putalpha.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putdata.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putpalette.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putpixel.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_quantize.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_resize.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_rotate.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_split.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_thumbnail.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_tobitmap.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_tobytes.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_transform.py Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup 2014-06-23 13:39:27 +03:00
test_image_transpose.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagechops.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagecms.py Proper skipping of tests when lcms2 is not installed 2014-06-19 06:06:23 -07:00
test_imagecolor.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagedraw.py Skip known failing test 2014-07-01 09:07:18 -07:00
test_imageenhance.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefile.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefileio.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefilter.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefont.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagegrab.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagemath.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagemode.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagemorph.py Make test runnable on its own 2014-06-24 10:01:43 +03:00
test_imageops_usm.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_imageops.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagepalette.py Added roundtrip test for ImagePalette.save 2014-06-24 09:58:53 -07:00
test_imagepath.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imageqt.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagesequence.py Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup 2014-06-23 13:39:27 +03:00
test_imageshow.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagestat.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagetk.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagetransform.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagewin.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_lib_image.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_lib_pack.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_locale.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_mode_i16.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_numpy.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_olefileio.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_pickle.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_pyroma.py Import helper so unittest2 is imported for Py2.6 (re: #743) 2014-07-01 02:05:55 +03:00
test_shell_injection.py Skip shell injection tests for Windows 2014-06-30 22:07:44 -04:00
threaded_save.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
versions.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00

Pillow Tests
============

Test scripts are named ``test_xxx.py`` and use the ``unittest`` module. A base class and helper functions can be found in ``helper.py``.

Execution
---------

Run the tests from the root of the Pillow source distribution::

    python selftest.py
    nosetests Tests/test_*.py

Or with coverage::

    coverage run --append --include=PIL/* selftest.py
    coverage run --append --include=PIL/* -m nose Tests/test_*.py
    coverage report
    coverage html
    open htmlcov/index.html

To run an individual test::

    python Tests/test_image.py