Pillow/Tests
2016-02-09 14:49:14 +02:00
..
fonts
icc
images Fix for buffer overflow in TiffDecode.c CVE-2016-0740 2016-02-04 08:13:11 -08:00
32bit_segfault_check.py
bench_cffi_access.py
bench_get.py
check_fli_overflow.py FLI overflow error fix and testcase CVE-2016-0775 2016-02-04 08:13:02 -08:00
check_icns_dos.py
check_imaging_leaks.py
check_j2k_dos.py
check_j2k_leaks.py
check_jpeg_leaks.py Changed lines to be below 80 characters 2015-12-02 16:41:26 +11:00
check_libtiff_segfault.py Fix for buffer overflow in TiffDecode.c CVE-2016-0740 2016-02-04 08:13:11 -08:00
check_png_dos.py
check_webp_leaks.py
helper.py
import_all.py
large_memory_numpy_test.py Specified exception type 2015-12-10 09:22:36 +11:00
large_memory_test.py Fixed typo [ci skip] 2016-02-09 22:02:43 +11:00
make_hash.py
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py
test_box_blur.py
test_cffi.py
test_decompression_bomb.py
test_features.py
test_file_bmp.py
test_file_bufrstub.py
test_file_cur.py Throw TypeError if no cursors were found in .cur file 2015-11-26 19:56:41 +11:00
test_file_dcx.py
test_file_dds.py Catch truncated DDS files 2016-01-15 21:34:36 +00:00
test_file_eps.py
test_file_fitsstub.py
test_file_fli.py
test_file_fpx.py Added FPX test 2016-01-23 13:50:17 +11:00
test_file_ftex.py added tests for ftex 2016-02-01 05:23:37 -08:00
test_file_gbr.py Working GbrImagePlugin for version 2 GBR (gimp brush) files 2016-01-08 07:18:48 -08:00
test_file_gif.py
test_file_gimpgradient.py
test_file_gimppalette.py
test_file_gribstub.py
test_file_hdf5stub.py
test_file_icns.py
test_file_ico.py
test_file_im.py
test_file_iptc.py
test_file_jpeg.py Rolling back exif support to pre-3.0 format 2016-01-01 04:14:24 -08:00
test_file_jpeg2k.py
test_file_libtiff_small.py
test_file_libtiff.py Merge pull request #1620 from wiredfool/issue_1597 2016-01-01 07:47:58 -08:00
test_file_mcidas.py
test_file_mic.py Added MIC test 2016-01-23 13:46:36 +11:00
test_file_mpo.py
test_file_msp.py
test_file_palm.py
test_file_pcd.py added __main__ clause 2016-02-04 04:24:47 -08:00
test_file_pcx.py
test_file_pdf.py
test_file_png.py
test_file_ppm.py
test_file_psd.py
test_file_sgi.py
test_file_spider.py Flake8 fixes 2015-12-10 21:34:02 +11:00
test_file_sun.py
test_file_tar.py
test_file_tga.py
test_file_tiff_metadata.py Write round trip for rationals, including nan value 2015-12-29 22:00:36 +00:00
test_file_tiff.py Updated deprecated asserts 2016-01-24 12:44:31 +11: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
test_font_bdf.py
test_font_pcf.py
test_format_hsv.py
test_format_lab.py
test_image_array.py test, fix missing 'version' key value in __array_interface__ 2015-11-02 20:07:12 +02:00
test_image_convert.py
test_image_copy.py
test_image_crop.py
test_image_draft.py
test_image_filter.py
test_image_frombytes.py
test_image_fromqimage.py Flake8 fixes 2015-12-10 21:34:02 +11:00
test_image_fromqpixmap.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 Version check rather than try/except 2016-01-03 13:04:04 -08:00
test_image_getpalette.py
test_image_getpixel.py
test_image_getprojection.py
test_image_histogram.py
test_image_load.py
test_image_mode.py
test_image_point.py Removed comment 2015-11-11 23:42:19 +11:00
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py
test_image_putpixel.py
test_image_quantize.py
test_image_resample.py input parameter filtering 2016-02-04 07:19:54 -08:00
test_image_resize.py
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py Changed assertTrue isinstance to assertIsInstance 2015-12-08 20:31:02 +11:00
test_image_toqimage.py Changed assertTrue isinstance to assertIsInstance 2015-12-08 20:31:02 +11:00
test_image_toqpixmap.py Changed assertTrue isinstance to assertIsInstance 2015-12-08 20:31:02 +11:00
test_image_transform.py
test_image_transpose.py
test_image.py
test_imagechops.py
test_imagecms.py
test_imagecolor.py
test_imagedraw.py Changed arcs, chords and pie slices to use floats 2015-12-09 00:28:52 +11:00
test_imageenhance.py
test_imagefile.py
test_imagefont_bitmap.py Flake8 fixes 2015-12-31 07:27:27 +11:00
test_imagefont.py Allowed textsize method to pass on multiline_textsize method specific arguments 2016-01-06 17:13:16 +11:00
test_imagegrab.py
test_imagemath.py
test_imagemorph.py
test_imageops_usm.py Fixed redefined built-in 2015-12-10 21:34:02 +11:00
test_imageops.py
test_imagepalette.py
test_imagepath.py
test_imageqt.py
test_imagesequence.py Merge pull request #1686 from radarhere/seek 2016-01-31 09:08:09 -08:00
test_imageshow.py
test_imagestat.py
test_imagetk.py
test_imagewin_pointers.py Version check rather than try/except 2016-01-03 13:04:04 -08:00
test_imagewin.py Removed undefined variable 2015-12-02 16:09:47 +11:00
test_lib_image.py
test_lib_pack.py
test_locale.py
test_mode_i16.py
test_numpy.py Merge pull request #1591 from radarhere/health 2015-12-14 21:00:09 +00:00
test_olefileio.py Fixed redefined built-in 2015-12-10 21:34:02 +11:00
test_pickle.py Fixed redefined built-in 2015-12-10 21:34:02 +11:00
test_psdraw.py
test_pyroma.py Forcing this one to pass 2016-01-01 15:57:42 +00:00
test_scipy.py Clarified comment 2015-12-25 12:02:18 +11:00
test_shell_injection.py
test_tiff_ifdrational.py Updated deprecated asserts 2016-01-24 12:44:31 +11:00
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``.

Dependencies
-----------

Install::

    pip install coverage nose

If you're using Python 2.6, there's one additional dependency::
  
    pip install unittest2

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