Pillow/Tests
2021-04-05 17:58:02 +10:00
..
fonts Fix Memory DOS in ImageFont 2021-04-01 17:17:27 +03:00
icc
images Set mode of three channel uncompressed RGB data to RGB 2021-04-05 17:58:02 +10:00
oss-fuzz Add libxcb to fuzzers 2021-03-28 13:49:37 +02:00
__init__.py
32bit_segfault_check.py
bench_cffi_access.py
check_fli_oob.py
check_fli_overflow.py
check_icns_dos.py Added context managers 2021-02-11 21:43:54 +11:00
check_imaging_leaks.py
check_j2k_dos.py Added context managers 2021-02-11 21:43:54 +11:00
check_j2k_leaks.py
check_j2k_overflow.py
check_jp2_overflow.py
check_jpeg_leaks.py
check_large_memory_numpy.py
check_large_memory.py
check_libtiff_segfault.py
check_png_dos.py
conftest.py Removed unused imports 2021-04-01 12:57:34 +11:00
createfontdatachunk.py
helper.py Make code for ImageMagick/GraphicsMagick more symmetric 2021-03-22 19:50:06 +00:00
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py Changed zero length assertions to falsy 2021-02-11 13:48:31 +11:00
test_box_blur.py
test_color_lut.py
test_core_resources.py
test_decompression_bomb.py Fix DOS in PSDImagePlugin -- CVE-2021-28675 2021-04-01 17:17:31 +03:00
test_features.py
test_file_apng.py Fix DOS in PSDImagePlugin -- CVE-2021-28675 2021-04-01 17:17:31 +03:00
test_file_blp.py Review, typos and lint 2021-04-01 17:41:46 +03:00
test_file_bmp.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_bufrstub.py
test_file_container.py
test_file_cur.py
test_file_dcx.py Changed zero length assertions to falsy 2021-02-11 13:48:31 +11:00
test_file_dds.py Set mode of three channel uncompressed RGB data to RGB 2021-04-05 17:58:02 +10:00
test_file_eps.py Review, typos and lint 2021-04-01 17:41:46 +03:00
test_file_fitsstub.py
test_file_fli.py Fix FLI DOS -- CVE-2021-28676 2021-04-01 17:17:23 +03:00
test_file_fpx.py Added context managers 2021-02-11 21:43:54 +11:00
test_file_ftex.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_gbr.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_gd.py
test_file_gif.py Only set info transparency on first frame 2021-03-17 00:24:57 +11:00
test_file_gimpgradient.py
test_file_gimppalette.py
test_file_gribstub.py
test_file_hdf5stub.py
test_file_icns.py Fixed unclosed file warning 2021-03-12 22:45:07 +11:00
test_file_ico.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_im.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_iptc.py
test_file_jpeg.py Moved getxmp() into JpegImageFile 2021-04-01 22:28:37 +11:00
test_file_jpeg2k.py Fix OOB Read in Jpeg2KDecode CVE-2021-25287,CVE-2021-25288 2021-04-01 17:17:13 +03:00
test_file_libtiff_small.py
test_file_libtiff.py Swap pixel values on Big Endian 2021-03-28 15:03:37 +02:00
test_file_mcidas.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_mic.py
test_file_mpo.py Merge pull request #5168 from radarhere/mpo 2021-03-07 11:38:36 +02:00
test_file_msp.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_palm.py Removed CONVERT helper variables 2021-03-22 19:50:06 +00:00
test_file_pcd.py
test_file_pcx.py Handle PCX images with an odd stride 2021-01-21 19:29:11 +11:00
test_file_pdf.py useless reptile 2021-01-07 14:57:49 +01:00
test_file_pixar.py
test_file_png.py Allow fewer palette entries than the bit depth maximum 2021-03-21 09:22:01 +11:00
test_file_ppm.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_psd.py Review, typos and lint 2021-04-01 17:41:46 +03:00
test_file_sgi.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_spider.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_sun.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_file_tar.py Changed zero length assertions to falsy 2021-02-11 13:48:31 +11:00
test_file_tga.py
test_file_tiff_metadata.py
test_file_tiff.py Review, typos and lint 2021-04-01 17:41:46 +03:00
test_file_wal.py
test_file_webp_alpha.py Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
test_file_webp_animated.py Only set info transparency on first frame 2021-03-17 00:24:57 +11:00
test_file_webp_lossless.py
test_file_webp_metadata.py useless reptile 2021-01-07 14:57:49 +01:00
test_file_webp.py Use duration from info dictionary when saving 2021-03-17 20:37:31 +11:00
test_file_wmf.py Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
test_file_xbm.py
test_file_xpm.py
test_file_xvthumb.py
test_font_bdf.py
test_font_leaks.py
test_font_pcf_charsets.py Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
test_font_pcf.py Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
test_format_hsv.py
test_format_lab.py
test_image_access.py Test for incorrect PixelAccess arguments 2021-01-14 22:09:11 +11:00
test_image_array.py
test_image_convert.py
test_image_copy.py
test_image_crop.py
test_image_draft.py
test_image_entropy.py
test_image_filter.py
test_image_frombytes.py
test_image_fromqimage.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
test_image_mode.py
test_image_paste.py Consider transparency when drawing text on an RGBA image 2020-04-19 20:56:17 +10:00
test_image_point.py
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py
test_image_quantize.py Set all transparent colors to be equal 2021-02-25 22:49:11 +11:00
test_image_reduce.py
test_image_resample.py known failing tests from valgrind -- uninitialized values 2021-01-07 14:52:02 +01:00
test_image_resize.py
test_image_rotate.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_image_split.py
test_image_thumbnail.py useless reptile 2021-01-07 14:57:49 +01:00
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py corrected comment 2021-03-27 02:06:36 +01:00
test_image_transpose.py
test_image.py Merge pull request #5274 from radarhere/gradient 2021-03-28 14:35:22 +01:00
test_imagechops.py
test_imagecms.py Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
test_imagecolor.py
test_imagedraw.py Increased use of assert_image_equal_tofile 2021-03-20 22:32:27 +11:00
test_imagedraw2.py Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
test_imageenhance.py
test_imagefile.py
test_imagefont.py Fix Memory DOS in ImageFont 2021-04-01 17:17:27 +03:00
test_imagefontctl.py Merge pull request #5215 from radarhere/license 2021-03-07 11:41:56 +02:00
test_imagegrab.py
test_imagemath.py
test_imagemorph.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_imageops_usm.py
test_imageops.py Test that preserve_tone changes RGB images but not L images 2021-03-29 23:26:34 +11:00
test_imagepalette.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_imagepath.py
test_imageqt.py Ensure file is closed if it is opened by ImageQt.ImageQt 2021-03-08 20:38:03 +11:00
test_imagesequence.py
test_imageshow.py Added IPythonViewer 2021-03-04 08:55:24 +11:00
test_imagestat.py
test_imagetk.py
test_imagewin_pointers.py Added context managers 2021-02-11 21:43:54 +11:00
test_imagewin.py
test_lib_image.py
test_lib_pack.py Add Tests and support for Planar Tiff Images 2021-03-28 15:03:37 +02:00
test_locale.py
test_main.py
test_map.py Added test 2021-01-30 13:01:42 +11:00
test_mode_i16.py
test_numpy.py Migrated from deprecated numpy bool and float 2021-02-26 20:59:11 +11:00
test_pdfparser.py
test_pickle.py
test_psdraw.py
test_pyroma.py
test_qt_image_qapplication.py Moved RGB fix inside ImageQt class 2021-03-10 13:17:19 +11:00
test_qt_image_toqimage.py Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
test_sgi_crash.py Fix OOB read in SgiRleDecode.c 2021-03-01 19:04:19 +11:00
test_shell_injection.py
test_tiff_crashes.py Fix for crash-0da0 2021-03-31 23:24:30 +02:00
test_tiff_ifdrational.py
test_uploader.py
test_util.py
test_webp_leaks.py

Pillow Tests
============

Test scripts are named ``test_xxx.py``. Helper classes and functions can be found in ``helper.py``.

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

Install::

    python3 -m pip install pytest pytest-cov

Execution
---------

To run an individual test::

    pytest Tests/test_image.py

Or::

    pytest -k test_image.py

Run all the tests from the root of the Pillow source distribution::

    pytest

Or with coverage::

    pytest --cov PIL --cov Tests --cov-report term
    coverage html
    open htmlcov/index.html