Pillow/Tests
2022-12-07 22:01:37 +11:00
..
fonts
icc
images Use fractional coordinates when drawing text 2022-11-08 11:49:39 +11:00
oss-fuzz Use compile_python_fuzzer 2022-12-03 10:54:04 +11:00
__init__.py
32bit_segfault_check.py
bench_cffi_access.py Remove old Travis CI config 2020-12-19 21:57:32 +02:00
check_fli_oob.py
check_fli_overflow.py Removed PillowTestCase helper class 2020-03-28 12:51:28 +11:00
check_icns_dos.py Added context managers 2021-02-11 21:43:54 +11:00
check_imaging_leaks.py
check_j2k_dos.py
check_j2k_leaks.py
check_j2k_overflow.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
check_jp2_overflow.py Added context managers 2021-11-25 23:16:07 +11:00
check_jpeg_leaks.py
check_large_memory_numpy.py pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
check_large_memory.py
check_libtiff_segfault.py Update pre-commit 2020-08-31 18:50:15 +10:00
check_png_dos.py
conftest.py
createfontdatachunk.py
helper.py
README.rst Added pytest-timeout to test dependencies 2022-05-16 08:56:45 +10:00
test_000_sanity.py
test_binary.py Convert some tests to pytest style 2020-01-18 12:12:10 -08:00
test_bmp_reference.py Added file to questionable list 2022-11-05 21:54:23 +11:00
test_box_blur.py [Test] function name should be snake_case 2022-04-11 15:29:01 +03:00
test_color_lut.py
test_core_resources.py pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
test_decompression_bomb.py Added GIF decompression bomb check 2022-06-30 12:47:35 +10:00
test_deprecate.py If removal version has arrived, raise an error 2022-04-08 21:22:31 +10:00
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
test_file_container.py
test_file_cur.py
test_file_dcx.py
test_file_dds.py
test_file_eps.py
test_file_fits.py Deprecated FitsStubImagePlugin 2022-02-19 14:41:12 +11:00
test_file_fli.py
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
test_file_imt.py
test_file_iptc.py
test_file_jpeg.py
test_file_jpeg2k.py
test_file_libtiff_small.py Update pre-commit 2020-08-31 18:50:15 +10:00
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
test_file_msp.py
test_file_palm.py
test_file_pcd.py
test_file_pcx.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_file_pdf.py
test_file_pixar.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_png.py
test_file_ppm.py
test_file_psd.py Added support for RGBA PSD images 2022-08-05 23:29:58 +10:00
test_file_sgi.py
test_file_spider.py
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
test_file_tga.py Merge pull request #6500 from radarhere/tga 2022-09-16 16:29:44 +03:00
test_file_tiff_metadata.py
test_file_tiff.py
test_file_wal.py Improved consistency of returning an image access object from load() 2022-02-02 11:49:31 +11:00
test_file_webp_alpha.py
test_file_webp_animated.py [Test] function name should be snake_case 2022-04-11 15:29:01 +03:00
test_file_webp_lossless.py
test_file_webp_metadata.py Added getxmp() to WebPImagePlugin 2022-11-26 12:14:44 +11:00
test_file_webp.py Test invalid WebP background colors 2022-04-26 18:55:54 +10:00
test_file_wmf.py
test_file_xbm.py
test_file_xpm.py
test_file_xvthumb.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_font_bdf.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_font_leaks.py
test_font_pcf_charsets.py
test_font_pcf.py test {ImageFont,TransposedFont}.getsize() deprecation 2022-07-01 11:22:47 +02:00
test_format_hsv.py
test_format_lab.py Convert some tests to pytest style 2020-01-18 12:12:10 -08:00
test_image_access.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2022-10-30 03:17:57 +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
test_image_copy.py
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 Deprecate support for Qt 5 (PyQt5 and PySide2). Use Qt 6 (PyQt6 or PySide6) instead. 2022-04-22 15:56:11 +03:00
test_image_getbands.py Convert some tests to pytest style 2020-01-18 12:12:10 -08:00
test_image_getbbox.py
test_image_getcolors.py
test_image_getdata.py
test_image_getextrema.py Fixed endian handling for I;16 getextrema 2020-02-29 20:29:28 +11:00
test_image_getim.py
test_image_getpalette.py
test_image_getprojection.py Convert various tests to pytest style 2020-01-27 22:46:52 +11:00
test_image_histogram.py Fixed bug with rounding pixels to palette 2022-06-18 04:09:41 -04:00
test_image_load.py Do not try to close fp if fp is empty 2020-08-15 13:07:14 +10:00
test_image_mode.py
test_image_paste.py
test_image_point.py
test_image_putalpha.py
test_image_putdata.py pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
test_image_putpalette.py
test_image_quantize.py
test_image_reduce.py
test_image_resample.py Parametrized tests 2022-10-03 16:57:42 +11:00
test_image_resize.py
test_image_rotate.py Parametrize tests 2022-08-23 21:41:32 +10:00
test_image_split.py
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 Convert some tests to pytest style 2020-01-18 12:12:10 -08:00
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
test_imagechops.py
test_imagecms.py
test_imagecolor.py
test_imagedraw.py
test_imagedraw2.py
test_imageenhance.py
test_imagefile.py
test_imagefont.py
test_imagefontctl.py
test_imagegrab.py If available, use xclip for grabclipboard() on Linux 2022-12-07 22:01:37 +11:00
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 Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imageops.py
test_imagepalette.py
test_imagepath.py [Test] class names should be CamelCase 2022-04-11 15:29:01 +03:00
test_imageqt.py
test_imagesequence.py Merge pull request #6195 from hugovk/cleanup 2022-04-26 18:51:44 +10:00
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 Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_lib_pack.py
test_locale.py
test_main.py
test_map.py pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
test_mode_i16.py
test_numpy.py
test_pdfparser.py
test_pickle.py
test_psdraw.py
test_pyroma.py
test_qt_image_qapplication.py
test_qt_image_toqimage.py
test_sgi_crash.py
test_shell_injection.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_tiff_crashes.py Filter out UserWarning: Truncated File Read 2021-08-24 11:03:10 +03: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 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