Pillow/Tests
artscoop 514c55aa16 Test fix for supported 32bit RGBA .cur file
Some .cur file with alpha was loaded fully opaque with PIL. Fixed, and fixed the test to take that into account.
2015-03-05 10:55:32 +01:00
..
fonts Testcase added. 2015-01-07 21:38:35 -08:00
icc
images Fix for zlib.decompression bomb in iTXt,zTXt, and iCCP chunks 2014-12-28 22:49:52 -08:00
32bit_segfault_check.py
bench_cffi_access.py
bench_get.py
check_icns_dos.py
check_j2k_dos.py
check_j2k_leaks.py
check_jpeg_leaks.py
check_png_dos.py Test style cleanup 2014-12-30 16:57:24 -08:00
check_webp_leaks.py webp: add memory leak test 2015-02-23 11:10:37 +01:00
crash_ttf_memory_error.py
helper.py
import_all.py
large_memory_numpy_test.py Do not quit Python if numpy is not installed 2014-12-19 00:40:27 -08:00
large_memory_test.py
make_hash.py
README.rst Fixed typo in Tests README.rst 2015-03-02 09:28:24 +11:00
show_icc.py
show_mcidas.py
test_000_sanity.py
test_binary.py Fixed binary conversion bug, and added corresponding tests 2015-03-02 09:56:47 +11:00
test_bmp_reference.py
test_box_blur.py
test_cffi.py
test_decompression_bomb.py
test_file_bmp.py
test_file_cur.py Test fix for supported 32bit RGBA .cur file 2015-03-05 10:55:32 +01:00
test_file_dcx.py
test_file_eps.py
test_file_fli.py
test_file_gif.py rename Image.ANTIALIAS to Image.LANCZOS 2014-11-28 01:41:56 +03:00
test_file_gimpgradient.py
test_file_icns.py
test_file_ico.py rename Image.ANTIALIAS to Image.LANCZOS 2014-11-28 01:41:56 +03:00
test_file_iptc.py
test_file_jpeg.py Adjust buffer size when quality=keep, fixes #148 (again) 2015-01-18 10:56:29 -08:00
test_file_jpeg2k.py
test_file_libtiff_small.py
test_file_libtiff.py
test_file_mpo.py
test_file_msp.py
test_file_palm.py
test_file_pcx.py
test_file_pdf.py
test_file_png.py Correct the name 2015-01-28 10:02:04 -08:00
test_file_ppm.py
test_file_psd.py
test_file_sgi.py
test_file_spider.py
test_file_sun.py
test_file_tar.py
test_file_tga.py
test_file_tiff_metadata.py
test_file_tiff.py Test as_dict() directly instead of as string. Fix for PyPy. 2015-02-08 19:09:39 +02:00
test_file_webp_alpha.py early versions of webp are known to produce higher deviations: deal with it 2015-02-14 23:50:25 +11:00
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_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_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_offset.py
test_image_point.py
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py
test_image_putpixel.py
test_image_quantize.py
test_image_resize.py rename Image.ANTIALIAS to Image.LANCZOS 2014-11-28 01:41:56 +03:00
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py
test_image_transpose.py
test_image.py
test_imagechops.py
test_imagecms.py
test_imagecolor.py
test_imagedraw.py
test_imageenhance.py
test_imagefile.py
test_imagefileio.py
test_imagefont_bitmap.py Fix bitmap tests to account for different metrics for bitmap and ttf fonts on some platforms 2015-01-07 21:38:36 -08:00
test_imagefont.py Restrict tests to linux/osx 2014-12-31 19:59:50 -08:00
test_imagegrab.py
test_imagemath.py
test_imagemorph.py
test_imageops_usm.py
test_imageops.py
test_imagepalette.py
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
test_lib_pack.py Enable basic support for 'RGBa' raw encoding/decoding 2015-02-02 13:06:56 +03:00
test_locale.py
test_mode_i16.py
test_numpy.py
test_olefileio.py
test_pickle.py Failing tests to pickle L mode images 2015-01-30 14:00:46 +02:00
test_psdraw.py Test drawing diagonal lines 2014-12-27 22:50:17 +02:00
test_pyroma.py
test_scipy.py Fixed array parameters to reflect new image resizing behavior 2014-12-31 17:17:42 -08: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