Pillow/Tests
Hugo van Kemenade 53c3cd9f8e isort Tests
2024-01-20 13:23:03 +02:00
..
fonts add test for glyph alpha blending 2023-11-27 16:25:04 +01:00
icc Add end-of-file-fixer to pre-commit 2023-09-25 16:45:38 +03:00
images Merge pull request #7701 from esoma/issue-7700 2024-01-11 14:05:16 +02:00
oss-fuzz isort Tests 2024-01-20 13:23:03 +02:00
__init__.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
32bit_segfault_check.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
bench_cffi_access.py isort Tests 2024-01-20 13:23:03 +02:00
check_fli_oob.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
check_fli_overflow.py isort Tests 2024-01-20 13:23:03 +02:00
check_icns_dos.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
check_imaging_leaks.py isort Tests 2024-01-20 13:23:03 +02:00
check_j2k_dos.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
check_j2k_leaks.py isort Tests 2024-01-20 13:23:03 +02:00
check_j2k_overflow.py isort Tests 2024-01-20 13:23:03 +02:00
check_jp2_overflow.py isort Tests 2024-01-20 13:23:03 +02:00
check_jpeg_leaks.py isort Tests 2024-01-20 13:23:03 +02:00
check_large_memory_numpy.py isort Tests 2024-01-20 13:23:03 +02:00
check_large_memory.py isort Tests 2024-01-20 13:23:03 +02:00
check_libtiff_segfault.py isort Tests 2024-01-20 13:23:03 +02:00
check_png_dos.py isort Tests 2024-01-20 13:23:03 +02:00
check_release_notes.py isort Tests 2024-01-20 13:23:03 +02:00
check_wheel.py isort Tests 2024-01-20 13:23:03 +02:00
conftest.py isort Tests 2024-01-20 13:23:03 +02:00
createfontdatachunk.py isort Tests 2024-01-20 13:23:03 +02:00
helper.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
README.rst Added pytest-timeout to test dependencies 2022-05-16 08:56:45 +10:00
test_000_sanity.py isort Tests 2024-01-20 13:23:03 +02:00
test_binary.py isort Tests 2024-01-20 13:23:03 +02:00
test_bmp_reference.py isort Tests 2024-01-20 13:23:03 +02:00
test_box_blur.py isort Tests 2024-01-20 13:23:03 +02:00
test_color_lut.py isort Tests 2024-01-20 13:23:03 +02:00
test_core_resources.py isort Tests 2024-01-20 13:23:03 +02:00
test_decompression_bomb.py isort Tests 2024-01-20 13:23:03 +02:00
test_deprecate.py isort Tests 2024-01-20 13:23:03 +02:00
test_features.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_apng.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_blp.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_bmp.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_bufrstub.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_container.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_cur.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_dcx.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_dds.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_eps.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_fits.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_fli.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_fpx.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_ftex.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_gbr.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_gd.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_gif.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_gimpgradient.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_gimppalette.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_gribstub.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_hdf5stub.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_icns.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_ico.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_im.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_imt.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_iptc.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_jpeg.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_jpeg2k.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_libtiff_small.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_libtiff.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_mcidas.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_mic.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_mpo.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_msp.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_palm.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_pcd.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_pcx.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_pdf.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_pixar.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_png.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_ppm.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_psd.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_qoi.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_sgi.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_spider.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_sun.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_tar.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_tga.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_tiff_metadata.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_tiff.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_wal.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_webp_alpha.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_webp_animated.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_webp_lossless.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_webp_metadata.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_webp.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_wmf.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_xbm.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_xpm.py isort Tests 2024-01-20 13:23:03 +02:00
test_file_xvthumb.py isort Tests 2024-01-20 13:23:03 +02:00
test_font_bdf.py isort Tests 2024-01-20 13:23:03 +02:00
test_font_crash.py isort Tests 2024-01-20 13:23:03 +02:00
test_font_leaks.py isort Tests 2024-01-20 13:23:03 +02:00
test_font_pcf_charsets.py isort Tests 2024-01-20 13:23:03 +02:00
test_font_pcf.py isort Tests 2024-01-20 13:23:03 +02:00
test_fontfile.py isort Tests 2024-01-20 13:23:03 +02:00
test_format_hsv.py isort Tests 2024-01-20 13:23:03 +02:00
test_format_lab.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_access.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_array.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_convert.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_copy.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_crop.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_draft.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_entropy.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_filter.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_frombytes.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_fromqimage.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getbands.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getbbox.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getcolors.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getdata.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getextrema.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getim.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getpalette.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_getprojection.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_histogram.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_load.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_mode.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_paste.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_point.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_putalpha.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_putdata.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_putpalette.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_quantize.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_reduce.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_resample.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_resize.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_rotate.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_split.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_thumbnail.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_tobitmap.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_tobytes.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_transform.py isort Tests 2024-01-20 13:23:03 +02:00
test_image_transpose.py isort Tests 2024-01-20 13:23:03 +02:00
test_image.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagechops.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagecms.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagecolor.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagedraw.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagedraw2.py isort Tests 2024-01-20 13:23:03 +02:00
test_imageenhance.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagefile.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagefont.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagefontctl.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagefontpil.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagegrab.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagemath.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagemorph.py isort Tests 2024-01-20 13:23:03 +02:00
test_imageops_usm.py isort Tests 2024-01-20 13:23:03 +02:00
test_imageops.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagepalette.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagepath.py isort Tests 2024-01-20 13:23:03 +02:00
test_imageqt.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagesequence.py isort Tests 2024-01-20 13:23:03 +02:00
test_imageshow.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagestat.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagetk.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagewin_pointers.py isort Tests 2024-01-20 13:23:03 +02:00
test_imagewin.py isort Tests 2024-01-20 13:23:03 +02:00
test_lib_image.py isort Tests 2024-01-20 13:23:03 +02:00
test_lib_pack.py isort Tests 2024-01-20 13:23:03 +02:00
test_locale.py isort Tests 2024-01-20 13:23:03 +02:00
test_main.py isort Tests 2024-01-20 13:23:03 +02:00
test_map.py isort Tests 2024-01-20 13:23:03 +02:00
test_mode_i16.py isort Tests 2024-01-20 13:23:03 +02:00
test_numpy.py isort Tests 2024-01-20 13:23:03 +02:00
test_pdfparser.py isort Tests 2024-01-20 13:23:03 +02:00
test_pickle.py isort Tests 2024-01-20 13:23:03 +02:00
test_psdraw.py isort Tests 2024-01-20 13:23:03 +02:00
test_pyroma.py isort Tests 2024-01-20 13:23:03 +02:00
test_qt_image_qapplication.py isort Tests 2024-01-20 13:23:03 +02:00
test_qt_image_toqimage.py isort Tests 2024-01-20 13:23:03 +02:00
test_sgi_crash.py isort Tests 2024-01-20 13:23:03 +02:00
test_shell_injection.py isort Tests 2024-01-20 13:23:03 +02:00
test_tiff_crashes.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
test_tiff_ifdrational.py isort Tests 2024-01-20 13:23:03 +02:00
test_uploader.py isort Tests 2024-01-20 13:23:03 +02:00
test_util.py isort Tests 2024-01-20 13:23:03 +02:00
test_webp_leaks.py isort Tests 2024-01-20 13:23:03 +02:00

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