Pillow/Tests
2015-12-30 00:45:48 +00:00
..
fonts
icc
images Test passes for 2.9.0, fails for 3.0.0 2015-12-29 22:57:36 +00:00
32bit_segfault_check.py
bench_cffi_access.py
bench_get.py Flake8 fixes 2015-08-25 22:27:18 +10: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_png_dos.py
check_webp_leaks.py
helper.py Restore legacy TIFF API. 2015-09-11 22:39:37 +01:00
import_all.py Flake8 fixes 2015-08-25 22:27:18 +10:00
large_memory_numpy_test.py Specified exception type 2015-12-10 09:22:36 +11:00
large_memory_test.py Changed 32 bit to 32-bit and 64 bit to 64-bit 2015-10-15 00:49:03 +11:00
make_hash.py
README.rst
show_icc.py Flake8 fixes 2015-08-25 22:27:18 +10:00
show_mcidas.py Flake8 fixes 2015-08-25 22:27:18 +10:00
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_eps.py Added test 2015-10-12 23:13:45 +11:00
test_file_fitsstub.py
test_file_fli.py
test_file_fpx.py
test_file_gbr.py
test_file_gif.py Corrected version number when saving GIFs 2015-08-21 22:10:13 +10:00
test_file_gimpgradient.py Restore legacy TIFF API. 2015-09-11 22:39:37 +01:00
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 Python 3.2, sigh 2015-12-30 00:45:48 +00:00
test_file_jpeg2k.py
test_file_libtiff_small.py
test_file_libtiff.py test for issue #1561 2015-12-14 20:24:01 +00:00
test_file_mcidas.py
test_file_mic.py
test_file_mpo.py
test_file_msp.py
test_file_palm.py
test_file_pcx.py
test_file_pdf.py Added PDF multipage saving 2015-09-29 22:51:52 +10:00
test_file_png.py
test_file_ppm.py Fixed infinite loop on truncated file 2015-08-29 02:05:08 +10:00
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 Updated deprecated asserts 2015-12-16 14:30:17 +11:00
test_file_tiff.py Updated deprecated asserts 2015-12-16 14:30:17 +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
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 Added test 2015-08-22 23:03:11 +10:00
test_image_resize.py
test_image_rotate.py Only use fast rotate operations if the expand flag is in use or the image is square 2015-08-06 00:23:14 +10:00
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 Fix handling of pathlib in save. Fixes #1460 2015-10-03 08:12:44 +01:00
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 for this 2015-09-15 20:12:16 +03:00
test_imagefont_bitmap.py Skip ImageFont_bitmap test if _imagingft C module is not installed 2015-09-08 18:00:00 +03:00
test_imagefont.py Test another ImageFont getter 2015-12-07 20:44:03 +02:00
test_imagegrab.py
test_imagemath.py
test_imagemorph.py Check that images are L mode in ImageMorph methods 2015-08-28 22:54:17 +10:00
test_imageops_usm.py Fixed redefined built-in 2015-12-10 21:34:02 +11:00
test_imageops.py
test_imagepalette.py Removed ImagePalette methods, deprecated in 2.6 2015-09-19 21:06:12 +10:00
test_imagepath.py
test_imageqt.py
test_imagesequence.py Removed unused argument 2015-12-02 16:55:50 +11:00
test_imageshow.py
test_imagestat.py
test_imagetk.py
test_imagewin_pointers.py Flake8 fixes 2015-12-10 21:34:02 +11: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
test_scipy.py Clarified comment 2015-12-25 12:02:18 +11: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``.

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