Pillow/Tests
2017-09-11 23:00:35 +03:00
..
fonts
icc
images Added expected result, renamed images 2017-09-09 12:01:38 +00:00
32bit_segfault_check.py
bench_cffi_access.py
bench_get.py
check_fli_overflow.py
check_icns_dos.py
check_imaging_leaks.py
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
helper.py refactored memory leak test case 2017-09-04 09:58:05 +00:00
import_all.py
make_hash.py
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py
test_box_blur.py
test_decompression_bomb.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_features.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_bmp.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_bufrstub.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_container.py
test_file_cur.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_dcx.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_dds.py
test_file_eps.py Added expected result, renamed images 2017-09-09 12:01:38 +00:00
test_file_fitsstub.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_fli.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_fpx.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_ftex.py
test_file_gbr.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_gif.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_gimpgradient.py
test_file_gimppalette.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_gribstub.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_hdf5stub.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_icns.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_ico.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_im.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_iptc.py
test_file_jpeg.py Merge pull request #2689 from radarhere/tests 2017-09-04 11:15:28 +01:00
test_file_jpeg2k.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_libtiff_small.py
test_file_libtiff.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_mcidas.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_mic.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_mpo.py
test_file_msp.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_palm.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_pcd.py
test_file_pcx.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_pdf.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_pixar.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_png.py Merge pull request #2634 from wiredfool/issue_2629 2017-09-04 11:23:57 +01:00
test_file_ppm.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_psd.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_sgi.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_spider.py Merge pull request #2647 from radarhere/spider 2017-09-09 10:23:45 +01:00
test_file_sun.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_tar.py
test_file_tga.py
test_file_tiff_metadata.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_tiff.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_webp_alpha.py
test_file_webp_lossless.py
test_file_webp_metadata.py
test_file_webp.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_wmf.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_xbm.py
test_file_xpm.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_file_xvthumb.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_font_bdf.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_font_leaks.py test for font memory leaks 2017-09-04 09:58:52 +00:00
test_font_pcf.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_format_hsv.py
test_format_lab.py
test_image_access.py
test_image_array.py
test_image_convert.py Merge pull request #2689 from radarhere/tests 2017-09-04 11:15:28 +01:00
test_image_copy.py
test_image_crop.py
test_image_draft.py
test_image_filter.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_frombytes.py
test_image_fromqimage.py
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_getprojection.py
test_image_histogram.py
test_image_load.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_mode.py
test_image_paste.py
test_image_point.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_quantize.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_resample.py
test_image_resize.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py
test_image_toqimage.py
test_image_toqpixmap.py
test_image_transform.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_image_transpose.py tests for transverse, add to docs 2017-09-11 23:00:35 +03:00
test_image.py Merge pull request #2689 from radarhere/tests 2017-09-04 11:15:28 +01:00
test_imagechops.py
test_imagecms.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imagecolor.py
test_imagedraw.py Removed ImageDraw.Draw del calls 2017-09-01 21:06:22 +10:00
test_imageenhance.py
test_imagefile.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imagefont_bitmap.py
test_imagefont.py Merge pull request #2706 from wiredfool/issue_2666 2017-09-04 11:26:28 +01:00
test_imagefontctl.py
test_imagegrab.py
test_imagemath.py
test_imagemorph.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imageops_usm.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imageops.py
test_imagepalette.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imagepath.py
test_imageqt.py
test_imagesequence.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imageshow.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imagestat.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_imagetk.py
test_imagewin_pointers.py
test_imagewin.py
test_lib_image.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_lib_pack.py
test_locale.py
test_map.py
test_mode_i16.py
test_numpy.py Changed format of lambda calls 2017-09-01 21:05:40 +10:00
test_pickle.py
test_psdraw.py
test_pyroma.py
test_scipy.py
test_shell_injection.py
test_tiff_ifdrational.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

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