Pillow/Tests
2024-06-27 12:40:07 +03:00
..
fonts
icc Use strncpy to avoid buffer overflow 2024-04-01 09:24:43 +03:00
images Merge pull request #8056 from radarhere/hdr 2024-06-26 11:33:50 +03:00
oss-fuzz Added type hints 2024-05-30 12:00:50 +10:00
__init__.py
32bit_segfault_check.py
bench_cffi_access.py Added type hints 2024-06-05 22:27:23 +10:00
check_fli_oob.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_jp2_overflow.py
check_jpeg_leaks.py
check_large_memory_numpy.py
check_large_memory.py
check_libtiff_segfault.py
check_png_dos.py
check_release_notes.py
check_wheel.py
conftest.py
createfontdatachunk.py
helper.py Updated type hints 2024-06-22 10:09:11 +10:00
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py Added image to supported list 2024-04-10 20:37:44 +10:00
test_box_blur.py
test_color_lut.py Added type hints to ImageFilter 2024-06-21 20:41:22 +10:00
test_core_resources.py
test_decompression_bomb.py Added type hints 2024-06-09 15:16:17 +10:00
test_deprecate.py
test_features.py Accept 't' suffix for libtiff version 2024-06-10 17:38:17 +10:00
test_file_apng.py Do not use first frame duration for other frames when saving 2024-06-04 18:46:35 +10:00
test_file_blp.py
test_file_bmp.py Added type hints 2024-06-05 22:27:23 +10:00
test_file_bufrstub.py Added type hints 2024-06-24 06:59:00 +10:00
test_file_container.py
test_file_cur.py
test_file_dcx.py
test_file_dds.py
test_file_eps.py Use f-strings 2024-05-07 14:01:08 +10:00
test_file_fits.py Support GZIP_1 compression 2024-03-26 21:29:28 +11:00
test_file_fli.py
test_file_fpx.py
test_file_ftex.py
test_file_gbr.py
test_file_gd.py
test_file_gif.py Added type hints 2024-06-11 06:52:14 +10:00
test_file_gimpgradient.py
test_file_gimppalette.py
test_file_gribstub.py Added type hints 2024-06-24 06:59:00 +10:00
test_file_hdf5stub.py Added type hints 2024-06-24 06:59:00 +10:00
test_file_icns.py
test_file_ico.py
test_file_im.py
test_file_imt.py
test_file_iptc.py
test_file_jpeg.py Updated type hints 2024-06-22 10:09:11 +10:00
test_file_jpeg2k.py Merge pull request #8146 from Yay295/jp2_parsing 2024-06-26 11:32:57 +03:00
test_file_libtiff_small.py
test_file_libtiff.py Accept 't' suffix for libtiff version 2024-06-11 07:15:47 +10:00
test_file_mcidas.py
test_file_mic.py
test_file_mpeg.py Added MPEG accept function 2024-04-22 13:39:35 +10:00
test_file_mpo.py Do not detect Ultra HDR images as MPO 2024-05-13 21:51:16 +10:00
test_file_msp.py
test_file_palm.py
test_file_pcd.py
test_file_pcx.py
test_file_pdf.py
test_file_pixar.py
test_file_png.py Merge pull request #8087 from radarhere/png_save_all 2024-06-25 06:21:44 -06:00
test_file_ppm.py Added type hints 2024-06-24 06:59:00 +10:00
test_file_psd.py Merge pull request #8039 from radarhere/psd_layers 2024-06-25 06:07:09 -06:00
test_file_qoi.py
test_file_sgi.py
test_file_spider.py Added type hints 2024-06-24 21:04:33 +10:00
test_file_sun.py
test_file_tar.py
test_file_tga.py
test_file_tiff_metadata.py Added type hints 2024-06-24 06:59:00 +10:00
test_file_tiff.py Merge pull request #7948 from radarhere/iptc 2024-06-25 05:26:53 -06:00
test_file_wal.py
test_file_webp_alpha.py
test_file_webp_animated.py Added type hints 2024-06-05 22:27:23 +10:00
test_file_webp_lossless.py
test_file_webp_metadata.py Improved consistency of XMP handling 2024-05-20 23:11:50 +10:00
test_file_webp.py Added type hints 2024-06-24 06:59:00 +10:00
test_file_wmf.py Added type hints 2024-06-05 22:27:23 +10:00
test_file_xbm.py
test_file_xpm.py
test_file_xvthumb.py
test_font_bdf.py
test_font_crash.py
test_font_leaks.py Updated type hints 2024-06-22 10:09:11 +10:00
test_font_pcf_charsets.py
test_font_pcf.py
test_fontfile.py
test_format_hsv.py
test_format_lab.py
test_image_access.py Added type hints 2024-06-05 22:27:23 +10:00
test_image_array.py Added type hints 2024-06-24 06:59:00 +10:00
test_image_convert.py Support conversion from RGB to La 2024-03-26 19:57:17 +11:00
test_image_copy.py
test_image_crop.py Added type hints 2024-06-01 21:31:53 +10:00
test_image_draft.py Updated type hints 2024-06-22 10:09:11 +10:00
test_image_entropy.py
test_image_filter.py Added type hints to ImageFilter 2024-06-21 20:41:22 +10:00
test_image_frombytes.py
test_image_fromqimage.py add typing to "ims" in test_image_fromqimage.py 2024-03-27 14:02:02 -05:00
test_image_getbands.py
test_image_getbbox.py
test_image_getcolors.py
test_image_getdata.py Update Tests/test_image_getdata.py 2024-04-06 15:18:16 -05:00
test_image_getextrema.py Added type hints 2024-06-01 21:31:53 +10:00
test_image_getim.py
test_image_getpalette.py
test_image_getprojection.py
test_image_histogram.py
test_image_load.py
test_image_mode.py Added type hints 2024-06-09 15:16:17 +10:00
test_image_paste.py Updated type hints 2024-06-22 10:09:11 +10:00
test_image_point.py Updated type hints 2024-06-22 10:09:11 +10:00
test_image_putalpha.py
test_image_putdata.py Updated type hints 2024-06-22 10:09:11 +10:00
test_image_putpalette.py Support unpacking more rawmodes to RGBA palette 2024-05-22 20:05:07 +10:00
test_image_quantize.py Added type hints 2024-06-09 15:16:17 +10:00
test_image_reduce.py Added type hints 2024-06-09 15:16:17 +10:00
test_image_resample.py Updated type hints 2024-06-22 10:09:11 +10:00
test_image_resize.py
test_image_rotate.py Added type hints 2024-06-05 22:27:23 +10:00
test_image_split.py
test_image_thumbnail.py Removed return value assertion 2024-06-09 18:09:54 +10:00
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py
test_image_transpose.py
test_image.py Remove zero-byte end padding when parsing any XMP data 2024-06-26 19:31:40 +10:00
test_imagechops.py
test_imagecms.py Updated type hints 2024-06-22 10:09:11 +10:00
test_imagecolor.py
test_imagedraw.py Merge pull request #8112 from radarhere/i16_mask 2024-06-25 06:50:47 -06:00
test_imagedraw2.py Clarify error message when size is missing 2024-06-24 15:08:36 +10:00
test_imageenhance.py
test_imagefile.py Added type hints 2024-06-24 21:04:33 +10:00
test_imagefont.py Merge pull request #8141 from radarhere/freetypefont_bytes 2024-06-25 06:11:20 -06:00
test_imagefontctl.py
test_imagefontpil.py Updated type hints 2024-06-22 10:09:11 +10:00
test_imagegrab.py Added type hints to tests 2024-06-25 10:50:40 +02:00
test_imagemath_lambda_eval.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-04-01 06:17:03 +00:00
test_imagemath_unsafe_eval.py Deprecate eval(), replacing it with lambda_eval() and unsafe_eval() 2024-04-01 09:11:59 +03:00
test_imagemorph.py
test_imageops_usm.py Added type hints 2024-06-24 21:04:33 +10:00
test_imageops.py Do not presume "xmp" info simply because "XML:com.adobe.xmp" info exists 2024-06-27 13:29:22 +10:00
test_imagepalette.py Added type hints 2024-06-24 21:04:33 +10:00
test_imagepath.py
test_imageqt.py Removed support for Qt 5 2024-06-22 00:39:37 +10:00
test_imagesequence.py Combine tests through parametrization 2024-04-19 17:15:10 +10:00
test_imageshow.py
test_imagestat.py Added type hints 2024-05-30 17:17:22 +10:00
test_imagetk.py
test_imagewin_pointers.py Added type hints 2024-06-24 06:59:00 +10:00
test_imagewin.py
test_lib_image.py
test_lib_pack.py Merge branch 'main' into bgr 2024-04-26 07:11:04 +10:00
test_locale.py Fix typos 2024-03-31 15:57:20 +03:00
test_main.py Added type hints 2024-06-09 15:16:17 +10:00
test_map.py
test_mode_i16.py
test_numpy.py Added type hints to ImageFilter 2024-06-21 20:41:22 +10:00
test_pdfparser.py
test_pickle.py
test_psdraw.py Added type hints 2024-06-24 06:59:00 +10:00
test_pyroma.py
test_qt_image_qapplication.py Added type hints 2024-06-05 22:27:23 +10:00
test_qt_image_toqimage.py
test_sgi_crash.py
test_shell_injection.py Added type hints 2024-06-18 23:03:03 +10:00
test_tiff_crashes.py
test_tiff_ifdrational.py Use monkeypatch to set READ_LIBTIFF and WRITE_LIBTIFF 2024-04-18 17:57:40 +10:00
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 pytest-timeout

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