Pillow/Tests
2017-08-16 12:00:32 +01:00
..
fonts Added Noto font license [ci skip] 2017-06-21 14:00:15 -07:00
icc
images Merge pull request #2650 from hugovk/fix-fli-seek-load 2017-08-16 11:44:35 +01:00
32bit_segfault_check.py Set executable flag on scripts with shebang line 2017-03-31 19:43:19 +11:00
bench_cffi_access.py
bench_get.py
check_fli_overflow.py
check_icns_dos.py
check_imaging_leaks.py Set executable flag on scripts with shebang line 2017-03-31 19:43:19 +11:00
check_j2k_dos.py
check_j2k_leaks.py
check_j2k_overflow.py
check_jpeg_leaks.py
check_large_memory_numpy.py
check_large_memory.py
check_libtiff_segfault.py
check_png_dos.py
check_webp_leaks.py
createfontdatachunk.py Move so isn't installed globally 2017-07-27 14:12:28 +03:00
helper.py Flake8 fixes 2017-04-20 21:14:23 +10:00
import_all.py
make_hash.py
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py Replaced false assert with fail 2017-06-03 14:04:18 +10:00
test_box_blur.py
test_decompression_bomb.py added decompression bomb check to crop 2017-06-21 02:36:11 -07:00
test_features.py tests for features 2017-06-13 04:38:26 -07:00
test_file_bmp.py
test_file_bufrstub.py Remove unnecessary lambda 2017-03-05 09:14:44 +02:00
test_file_container.py Test ContainerIO for correctness 2017-03-05 00:46:30 +02:00
test_file_cur.py Changed file opening to use with 2017-05-30 19:54:40 +10:00
test_file_dcx.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_file_dds.py
test_file_eps.py
test_file_fitsstub.py
test_file_fli.py Test animated FLI 2017-08-04 14:41:28 +03:00
test_file_fpx.py
test_file_ftex.py
test_file_gbr.py
test_file_gif.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_file_gimpgradient.py
test_file_gimppalette.py
test_file_gribstub.py Remove unnecessary lambda 2017-03-04 23:19:41 +02:00
test_file_hdf5stub.py
test_file_icns.py
test_file_ico.py Fix typos 2017-03-13 07:58:24 +02:00
test_file_im.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_file_iptc.py
test_file_jpeg.py Test for https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612 2017-07-18 01:06:54 -07:00
test_file_jpeg2k.py
test_file_libtiff_small.py
test_file_libtiff.py Merge pull request #2551 from jdufresne/keys 2017-06-13 13:12:48 +01:00
test_file_mcidas.py Test a McIDAS area file 2017-05-28 16:11:16 +03:00
test_file_mic.py Adjust test for the gamma of 2.2 encoded into the file 2017-06-13 23:07:46 +03:00
test_file_mpo.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_file_msp.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_file_palm.py
test_file_pcd.py
test_file_pcx.py
test_file_pdf.py Added append_images to PDF saving 2017-05-13 14:26:52 +10:00
test_file_pixar.py Fix typos 2017-03-13 07:58:24 +02:00
test_file_png.py fixing the png leak test memory calculations 2017-06-27 21:20:46 +01:00
test_file_ppm.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_file_psd.py Merge pull request #2447 from hugovk/test-mic 2017-06-13 22:20:44 +01:00
test_file_sgi.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_file_spider.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_file_sun.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_file_tar.py
test_file_tga.py
test_file_tiff_metadata.py
test_file_tiff.py Merge pull request #2406 from blochl/multiframe_tiff 2017-06-13 22:30:35 +01:00
test_file_webp_alpha.py
test_file_webp_lossless.py
test_file_webp_metadata.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_file_webp.py Added tests that call _webp.WebPEncode and _webp.WebPDecode with invalid number of arguments. 2017-05-12 17:11:58 +02:00
test_file_wmf.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_file_xbm.py
test_file_xpm.py Fix typos 2017-03-13 07:58:24 +02:00
test_file_xvthumb.py Compare to a Hopper image with a similar XV palette 2017-03-06 17:33:47 +02:00
test_font_bdf.py
test_font_pcf.py
test_format_hsv.py
test_format_lab.py
test_image_access.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_array.py
test_image_convert.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_copy.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_crop.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_draft.py
test_image_filter.py serious test for kernel filters 2017-08-12 23:22:59 +03:00
test_image_frombytes.py
test_image_fromqimage.py
test_image_fromqpixmap.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_getbands.py
test_image_getbbox.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_image_getcolors.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_image_getdata.py
test_image_getextrema.py
test_image_getim.py
test_image_getpalette.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_image_getprojection.py
test_image_histogram.py
test_image_load.py
test_image_mode.py
test_image_paste.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_point.py
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py
test_image_quantize.py
test_image_resample.py Merge pull request #2558 from uploadcare/resize-truncate-coeffs-2 2017-06-13 21:03:27 +01:00
test_image_resize.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_rotate.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
test_image_toqimage.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_toqpixmap.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_image_transform.py
test_image_transpose.py
test_image.py fix tests on python 3 2017-08-06 14:12:55 +03:00
test_imagechops.py
test_imagecms.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_imagecolor.py Remove unnecessary calls to dict.keys() 2017-05-28 09:55:38 -07:00
test_imagedraw.py Added threshold parameter to ImageDraw.floodfill (#2599) 2017-07-01 10:37:02 +01:00
test_imageenhance.py
test_imagefile.py Add test 2017-05-13 12:07:16 -04:00
test_imagefont_bitmap.py
test_imagefont.py Test for #2639 2017-07-23 23:56:02 +03:00
test_imagefontctl.py test features in get size 2017-06-30 22:57:57 +01:00
test_imagegrab.py Removed unnecessary parameter 2017-06-03 13:56:23 +10:00
test_imagemath.py
test_imagemorph.py Test MRL save/load roundtrip 2017-05-30 18:02:20 +03:00
test_imageops_usm.py
test_imageops.py
test_imagepalette.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_imagepath.py
test_imageqt.py
test_imagesequence.py Flake8 fixes 2017-04-20 21:14:23 +10:00
test_imageshow.py
test_imagestat.py
test_imagetk.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
test_imagewin_pointers.py
test_imagewin.py Remove functions deprecated and warning since 2.0 (15 Mar 2013) and raising exceptions since 3.0 (1 Oct 2015) 2017-05-27 21:52:43 +03:00
test_lib_image.py
test_lib_pack.py
test_locale.py
test_map.py
test_mode_i16.py
test_numpy.py
test_pickle.py
test_psdraw.py
test_pyroma.py
test_scipy.py
test_shell_injection.py
test_tiff_ifdrational.py Changed assert checks to more specific versions 2017-06-03 14:04:54 +10: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

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