Pillow/Tests
2022-10-27 14:10:16 +03:00
..
fonts add test using woff2 font with freetype 2022-09-07 20:25:59 +02:00
icc
images Merge pull request #6562 from nulano/winbuild-update 2022-10-27 14:10:16 +03: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
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
conftest.py
createfontdatachunk.py
helper.py some pylint warnings 2022-10-13 15:20:11 +13:00
README.rst
test_000_sanity.py Do not import PIL.Image 2022-10-03 19:54:37 +11:00
test_binary.py
test_bmp_reference.py
test_box_blur.py
test_color_lut.py
test_core_resources.py
test_decompression_bomb.py
test_deprecate.py
test_deprecated_imageqt.py
test_features.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_apng.py Do not modify previous frame when calculating delta 2022-10-24 22:19:22 +11:00
test_file_blp.py Decode JPEG compressed BLP1 data in original mode 2022-10-23 15:54:55 +11:00
test_file_bmp.py Only use existing test image 2022-10-24 15:36:31 +11:00
test_file_bufrstub.py Fixed BUFR, GRIB and HDF5 stub saving 2022-02-19 14:29:03 +11:00
test_file_container.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_file_cur.py
test_file_dcx.py
test_file_dds.py Updated BC6H test images 2022-10-08 21:20:31 +11:00
test_file_eps.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_fits.py
test_file_fli.py Allow palette chunk to not be first 2022-09-29 21:29:16 +10:00
test_file_fpx.py Limit tile size to avoid extending outside image 2022-06-16 08:36:43 +10:00
test_file_ftex.py
test_file_gbr.py
test_file_gd.py
test_file_gif.py Merge branch 'main' into gif 2022-10-12 22:01:35 +11:00
test_file_gimpgradient.py
test_file_gimppalette.py
test_file_gribstub.py
test_file_hdf5stub.py
test_file_icns.py
test_file_ico.py
test_file_im.py Pad IM palette to 768 bytes when saving 2022-09-14 21:01:58 +10:00
test_file_imt.py Added IMT tests 2022-09-29 08:22:01 +10:00
test_file_iptc.py
test_file_jpeg.py some pylint warnings 2022-10-13 15:20:11 +13:00
test_file_jpeg2k.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_libtiff_small.py
test_file_libtiff.py Merge pull request #6562 from nulano/winbuild-update 2022-10-27 14:10:16 +03:00
test_file_mcidas.py
test_file_mic.py
test_file_mpo.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_file_msp.py
test_file_palm.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_pcd.py
test_file_pcx.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_pdf.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_pixar.py
test_file_png.py some pylint warnings 2022-10-13 15:20:11 +13:00
test_file_ppm.py Write in binary format 2022-10-23 15:17:54 +11:00
test_file_psd.py
test_file_sgi.py
test_file_spider.py
test_file_sun.py
test_file_tar.py
test_file_tga.py Merge pull request #6500 from radarhere/tga 2022-09-16 16:29:44 +03:00
test_file_tiff_metadata.py Fixed writing bytes as ASCII tag 2022-08-11 20:46:58 +10:00
test_file_tiff.py some pylint warnings 2022-10-13 15:20:11 +13: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 Removed EXIF prefix when saving 2022-09-15 21:25:40 +10:00
test_file_webp.py
test_file_wmf.py Parametrize tests 2022-08-23 21:41:32 +10: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 Parametrized tests 2022-10-03 16:57:42 +11:00
test_font_pcf.py
test_format_hsv.py
test_format_lab.py
test_image_access.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2022-10-13 02:22:53 +00:00
test_image_array.py Raise a warning if NumPy will not raise an error during conversion 2022-09-17 20:11:55 +10:00
test_image_convert.py Merge pull request #6647 from radarhere/rgb2lab 2022-10-19 10:32:03 +02:00
test_image_copy.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_image_crop.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_image_draft.py
test_image_entropy.py
test_image_filter.py Apply suggestions from code review 2022-08-29 12:28:14 -05:00
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 make @pytest.mark.parametrize annotations one line 2022-08-22 13:29:26 -05: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 Parametrized tests 2022-10-03 16:57:42 +11:00
test_image_resample.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_image_resize.py Further parametrizations 2022-08-24 10:37:40 +10:00
test_image_rotate.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_image_split.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_image_thumbnail.py Do not call load() before draft() 2022-08-26 20:33:51 +10:00
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py Apply suggestions from code review 2022-08-29 11:35:06 -05:00
test_image_transpose.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_image.py Removed blank line 2022-10-23 14:24:30 +11:00
test_imagechops.py
test_imagecms.py
test_imagecolor.py
test_imagedraw.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_imagedraw2.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_imageenhance.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_imagefile.py
test_imagefont.py Merge branch 'main' into winbuild-update 2022-10-14 12:20:34 +11:00
test_imagefontctl.py
test_imagegrab.py
test_imagemath.py Merge branch 'main' into main 2022-10-13 11:14:21 +02:00
test_imagemorph.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_imageops_usm.py
test_imageops.py Merge branch 'main' into fix-padding 2022-09-21 20:22:27 +10:00
test_imagepalette.py Updated error message 2022-10-10 12:02:10 +11:00
test_imagepath.py
test_imageqt.py
test_imagesequence.py
test_imageshow.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_imagestat.py
test_imagetk.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_imagewin_pointers.py
test_imagewin.py
test_lib_image.py
test_lib_pack.py
test_locale.py
test_main.py
test_map.py
test_mode_i16.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_numpy.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_pdfparser.py
test_pickle.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_psdraw.py
test_pyroma.py
test_qt_image_qapplication.py
test_qt_image_toqimage.py Qt4 is no longer supported 2022-08-24 08:12:14 +10:00
test_sgi_crash.py
test_shell_injection.py
test_tiff_crashes.py
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 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