Pillow/Tests
wiredfool 347a1d8d95 J2k DOS fix -- CVE-2014-3598
Found and reported by Andrew Drake of dropbox.com
2014-08-19 08:25:40 -07:00
..
fonts
icc
images Add JPEG with IPTC data. My image, permission given to distribute under MIT licence 2014-07-30 19:33:04 +03:00
32bit_segfault_check.py
bench_cffi_access.py
bench_get.py
check_icns_dos.py Icns DOS fix -- CVE-2014-3589 2014-08-13 09:25:11 -07:00
check_j2k_dos.py J2k DOS fix -- CVE-2014-3598 2014-08-19 08:25:40 -07:00
crash_ttf_memory_error.py
helper.py using skip known bad 2014-07-23 14:31:49 -07:00
import_all.py
large_memory_numpy_test.py
large_memory_test.py
make_hash.py Storage, packing and access for HSV format images 2014-07-22 16:09:22 -07:00
README.rst Detail test-installed.py 2014-08-12 16:37:49 +03:00
show_icc.py
show_mcidas.py
test_000_sanity.py
test_bmp_reference.py
test_cffi.py
test_decompression_bomb.py
test_file_bmp.py
test_file_cur.py Check some pixel colors to ensure image is loaded properly 2014-07-17 10:42:43 +03:00
test_file_dcx.py
test_file_eps.py
test_file_fli.py
test_file_gif.py Fixed test_optimize_full_l test case for python2. 2014-08-19 15:00:15 +03:00
test_file_icns.py
test_file_ico.py
test_file_iptc.py Fi xffor Python 3 2014-08-01 12:11:03 +03:00
test_file_jpeg.py
test_file_jpeg2k.py
test_file_libtiff_small.py
test_file_libtiff.py
test_file_mpo.py Better documented limited MPO save feature. 2014-07-30 09:17:36 -07:00
test_file_msp.py
test_file_palm.py
test_file_pcx.py
test_file_pdf.py
test_file_png.py Test unicode preservation in text chunks. 2014-07-23 08:17:11 -07:00
test_file_ppm.py
test_file_psd.py
test_file_sgi.py If we can't read a file due to unsupported compression, raise an error 2014-07-20 01:50:05 +03:00
test_file_spider.py
test_file_sun.py
test_file_tar.py
test_file_tiff_metadata.py
test_file_tiff.py More tests for TiffImagePlugin.py 2014-07-27 22:18:42 +03:00
test_file_webp_alpha.py
test_file_webp_lossless.py
test_file_webp_metadata.py
test_file_webp.py
test_file_xbm.py
test_file_xpm.py Fix scrambled XPM image, don't mmap when load_read/load_seek is defined. Fixes #806 2014-07-18 10:40:08 -07:00
test_font_bdf.py
test_font_pcf.py
test_format_hsv.py And now for something completely different. Py3 compatibility 2014-07-23 09:08:28 -07:00
test_format_lab.py
test_image_array.py Use unique class names to match filenames 2014-07-20 01:17:20 +03:00
test_image_convert.py
test_image_copy.py
test_image_crop.py
test_image_draft.py
test_image_filter.py Merge some similar tests to a single file 2014-07-20 01:17:32 +03:00
test_image_frombytes.py
test_image_getbands.py
test_image_getbbox.py
test_image_getcolors.py
test_image_getdata.py
test_image_getextrema.py
test_image_getim.py
test_image_getpalette.py
test_image_getpixel.py
test_image_getprojection.py
test_image_histogram.py
test_image_load.py
test_image_mode.py Merge some similar tests to a single file 2014-07-20 01:17:32 +03:00
test_image_offset.py
test_image_point.py Image.point tests for Float LUT 2014-07-28 21:49:11 -07:00
test_image_putalpha.py
test_image_putdata.py Mode F and I tests for Image.putdata 2014-07-28 22:09:52 -07:00
test_image_putpalette.py
test_image_putpixel.py
test_image_quantize.py
test_image_resize.py
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py Run nose in verbose mode so we can see the tests being run/skipped. Override __str__ in PillowTestCase for nicer output, and make sure all tests are derived from PillowTestCase. 2014-07-20 01:16:51 +03:00
test_image_transform.py Merge some similar tests to a single file 2014-07-20 01:17:32 +03:00
test_image_transpose.py
test_image.py
test_imagechops.py
test_imagecms.py Added im.info['icc_profile'] to results for ImageCms.applyTransform 2014-07-29 21:20:11 -07:00
test_imagecolor.py
test_imagedraw.py
test_imageenhance.py
test_imagefile.py Use unique class names to match filenames 2014-07-20 01:17:20 +03:00
test_imagefileio.py
test_imagefont.py
test_imagegrab.py Use unique class names to match filenames 2014-07-20 01:17:20 +03:00
test_imagemath.py
test_imagemorph.py
test_imageops_usm.py
test_imageops.py
test_imagepalette.py More ImagePalette.py tests and remove unused and uncallable new() 2014-07-21 23:18:46 +03:00
test_imagepath.py
test_imageqt.py
test_imagesequence.py
test_imageshow.py
test_imagestat.py
test_imagetk.py
test_imagewin.py
test_lib_image.py Use unique class names to match filenames 2014-07-20 01:17:20 +03:00
test_lib_pack.py
test_locale.py
test_mode_i16.py 2.8 million pyaccesses take a while, nomatter what 2014-07-23 17:02:57 -07:00
test_numpy.py
test_olefileio.py
test_pickle.py
test_pyroma.py Run nose in verbose mode so we can see the tests being run/skipped. Override __str__ in PillowTestCase for nicer output, and make sure all tests are derived from PillowTestCase. 2014-07-20 01:16:51 +03:00
test_shell_injection.py
test_util.py
threaded_save.py
versions.py

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``.

Depedencies
-----------

Install::

    pip install coverage nose


Execution
---------

**If Pillow has been built in-place**

To run an individual test::

    python Tests/test_image.py

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

    nosetests -vx Tests/test_*.py

Or with coverage::

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

**If Pillow has been installed**

To run an individual test::

    ./test-installed.py Tests/test_image.py

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

    ./test-installed.py