Pillow/Tests
Andrew Murray 91eb69c6b2 Fixed typo
2024-03-04 06:37:56 +11:00
..
fonts
icc
images Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
oss-fuzz
__init__.py
32bit_segfault_check.py
bench_cffi_access.py
check_fli_oob.py
check_fli_overflow.py
check_icns_dos.py
check_imaging_leaks.py Added type hints 2024-03-02 13:12:17 +11:00
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 Added type hints 2024-03-02 13:12:17 +11:00
check_release_notes.py
check_wheel.py
conftest.py
createfontdatachunk.py
helper.py Added type hints 2024-03-02 13:12:17 +11:00
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py
test_box_blur.py
test_color_lut.py Added type hints 2024-02-12 23:01:44 +11:00
test_core_resources.py Added type hints 2024-02-12 23:01:44 +11:00
test_decompression_bomb.py
test_deprecate.py Added type hints 2024-02-20 15:41:20 +11:00
test_features.py Added type hints 2024-02-17 15:00:38 +11:00
test_file_apng.py
test_file_blp.py Added type hints 2024-02-17 15:00:38 +11:00
test_file_bmp.py Added type hints 2024-02-17 15:00:38 +11:00
test_file_bufrstub.py
test_file_container.py Added type hints 2024-03-02 13:12:17 +11:00
test_file_cur.py
test_file_dcx.py
test_file_dds.py Added type hints 2024-02-12 23:01:44 +11:00
test_file_eps.py
test_file_fits.py
test_file_fli.py fix FLI/FLC decoder for files with a prefix chunk 2024-02-22 09:13:48 +01:00
test_file_fpx.py
test_file_ftex.py
test_file_gbr.py
test_file_gd.py
test_file_gif.py Merge pull request #7779 from radarhere/gif 2024-03-01 12:14:05 +02:00
test_file_gimpgradient.py
test_file_gimppalette.py
test_file_gribstub.py Added type hints 2024-02-12 23:01:44 +11:00
test_file_hdf5stub.py Added type hints 2024-02-12 23:01:44 +11:00
test_file_icns.py
test_file_ico.py Added type hints 2024-02-20 15:41:20 +11:00
test_file_im.py Added type hints 2024-02-17 15:00:38 +11:00
test_file_imt.py
test_file_iptc.py Added type hints 2024-02-20 15:41:20 +11:00
test_file_jpeg.py Added type hints 2024-03-02 13:12:17 +11:00
test_file_jpeg2k.py Added type hints 2024-03-02 13:12:17 +11:00
test_file_libtiff_small.py
test_file_libtiff.py Added type hints 2024-03-02 13:12:17 +11:00
test_file_mcidas.py Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
test_file_mic.py
test_file_mpo.py Added type hints 2024-03-02 13:12:17 +11:00
test_file_msp.py Added type hints 2024-02-20 15:41:20 +11:00
test_file_palm.py Added type hints 2024-02-12 23:01:44 +11:00
test_file_pcd.py
test_file_pcx.py Added type hints 2024-02-17 15:00:38 +11:00
test_file_pdf.py Added type hints 2024-02-17 15:00:38 +11:00
test_file_pixar.py
test_file_png.py Merge pull request #7846 from radarhere/type_hints 2024-03-03 21:33:08 +11:00
test_file_ppm.py Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
test_file_psd.py Added type hints 2024-02-20 15:41:20 +11:00
test_file_qoi.py
test_file_sgi.py
test_file_spider.py Fixed typo 2024-03-04 06:37:56 +11:00
test_file_sun.py
test_file_tar.py Added type hints 2024-02-12 23:01:44 +11:00
test_file_tga.py Added type hints 2024-02-20 15:41:20 +11:00
test_file_tiff_metadata.py Added type hints 2024-02-20 15:41:20 +11:00
test_file_tiff.py Added type hints 2024-03-02 13:12:17 +11:00
test_file_wal.py
test_file_webp_alpha.py
test_file_webp_animated.py
test_file_webp_lossless.py
test_file_webp_metadata.py Added type hints 2024-02-12 23:01:44 +11:00
test_file_webp.py
test_file_wmf.py
test_file_xbm.py
test_file_xpm.py
test_file_xvthumb.py
test_font_bdf.py
test_font_crash.py
test_font_leaks.py
test_font_pcf_charsets.py
test_font_pcf.py
test_fontfile.py
test_format_hsv.py Merge branch 'main' into unused 2024-02-17 18:23:04 +11:00
test_format_lab.py
test_image_access.py Added type hints 2024-03-02 13:12:17 +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 Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
test_image_frombytes.py
test_image_fromqimage.py Added type hints 2024-03-02 13:12:17 +11:00
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 Added type hints 2024-03-02 13:12:17 +11:00
test_image_point.py
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py
test_image_quantize.py
test_image_reduce.py
test_image_resample.py Added type hints 2024-03-02 13:12:17 +11:00
test_image_resize.py Added type hints 2024-03-02 13:12:17 +11:00
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py
test_image_transpose.py
test_image.py Added type hints 2024-03-02 13:12:17 +11:00
test_imagechops.py Added type hints 2024-02-17 15:00:38 +11:00
test_imagecms.py Renamed argument 2024-02-21 08:11:01 +11:00
test_imagecolor.py
test_imagedraw.py Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
test_imagedraw2.py Added type hints 2024-02-17 15:00:38 +11:00
test_imageenhance.py Added type hints 2024-02-17 15:00:38 +11:00
test_imagefile.py Added type hints 2024-02-17 15:00:38 +11:00
test_imagefont.py Added type hints 2024-02-20 15:41:20 +11:00
test_imagefontctl.py Added type hints 2024-02-12 23:01:44 +11:00
test_imagefontpil.py
test_imagegrab.py Added type hints 2024-02-20 15:41:20 +11:00
test_imagemath.py
test_imagemorph.py Added type hints 2024-03-02 13:12:17 +11:00
test_imageops_usm.py Added type hints 2024-03-02 13:12:17 +11:00
test_imageops.py Added type hints 2024-03-02 13:12:17 +11:00
test_imagepalette.py Added type hints 2024-02-12 23:01:44 +11:00
test_imagepath.py Added type hints 2024-02-20 15:41:20 +11:00
test_imageqt.py Added type hints 2024-02-20 15:41:20 +11:00
test_imagesequence.py Added type hints 2024-03-02 13:12:17 +11:00
test_imageshow.py Added type hints 2024-03-02 13:12:17 +11:00
test_imagestat.py
test_imagetk.py
test_imagewin_pointers.py Added type hints 2024-02-20 15:41:20 +11:00
test_imagewin.py
test_lib_image.py
test_lib_pack.py
test_locale.py
test_main.py
test_map.py
test_mode_i16.py Added type hints 2024-03-02 13:12:17 +11:00
test_numpy.py Added type hints 2024-02-20 15:41:20 +11:00
test_pdfparser.py
test_pickle.py Added type hints 2024-02-12 23:01:44 +11:00
test_psdraw.py Added type hints 2024-02-12 23:01:44 +11:00
test_pyroma.py
test_qt_image_qapplication.py Added type hints 2024-02-20 15:41:20 +11:00
test_qt_image_toqimage.py Added type hints 2024-02-20 15:41:20 +11:00
test_sgi_crash.py Added type hints 2024-02-12 23:01:44 +11:00
test_shell_injection.py Added type hints 2024-02-12 23:01:44 +11:00
test_tiff_crashes.py Added type hints 2024-03-02 13:12:17 +11:00
test_tiff_ifdrational.py Added type hints 2024-02-12 23:01:44 +11:00
test_uploader.py
test_util.py Added type hints 2024-02-20 15:41:20 +11:00
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