Pillow/Tests
2020-08-31 18:50:15 +10:00
..
fonts
icc
images Read EXIF data tEXt chunk into info as bytes instead of string 2020-07-31 17:42:48 +10:00
__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 Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
check_j2k_dos.py
check_j2k_leaks.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
check_j2k_overflow.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
check_jp2_overflow.py
check_jpeg_leaks.py Update pre-commit 2020-08-31 18:50:15 +10:00
check_large_memory_numpy.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
check_large_memory.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
check_libtiff_segfault.py Update pre-commit 2020-08-31 18:50:15 +10:00
check_png_dos.py
check_tiff_crashes.py
conftest.py
createfontdatachunk.py
helper.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_box_blur.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_color_lut.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_core_resources.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_decompression_bomb.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_features.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_apng.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_file_blp.py
test_file_bmp.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_bufrstub.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_container.py
test_file_cur.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_dcx.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_dds.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_eps.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_fitsstub.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_fli.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_fpx.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_ftex.py
test_file_gbr.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_gd.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_gif.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_gimpgradient.py
test_file_gimppalette.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_gribstub.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_hdf5stub.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_icns.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_ico.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_im.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_iptc.py
test_file_jpeg.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_file_jpeg2k.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_libtiff_small.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_file_libtiff.py Removed trailing comma 2020-08-31 18:50:15 +10:00
test_file_mcidas.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_mic.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_mpo.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_msp.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_palm.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_pcd.py
test_file_pcx.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_pdf.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_pixar.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_png.py Merge pull request #4828 from radarhere/exif_text 2020-08-11 21:52:12 +03:00
test_file_ppm.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_psd.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_sgi.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_spider.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_sun.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_tar.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_tga.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_tiff_metadata.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_file_tiff.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_file_wal.py
test_file_webp_alpha.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_webp_animated.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_webp_lossless.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_webp_metadata.py Corrected reading EXIF metadata without prefix 2020-06-07 20:01:04 +10:00
test_file_webp.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_wmf.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_xbm.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_file_xpm.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
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 Renamed variable 2020-06-06 19:42:24 +10:00
test_font_pcf.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_format_hsv.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_format_lab.py
test_image_access.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_image_array.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_convert.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_copy.py
test_image_crop.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_draft.py
test_image_entropy.py
test_image_filter.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_frombytes.py Remove im.offset, deprecated in 2001; and fromstring and tostring, deprecated in 2013 2020-07-17 10:55:20 +03:00
test_image_fromqimage.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03: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 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 Update pre-commit 2020-08-31 18:50:15 +10:00
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_quantize.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_reduce.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_resample.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_resize.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_image_transpose.py
test_image.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_imagechops.py
test_imagecms.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_imagecolor.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagedraw.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_imagedraw2.py
test_imageenhance.py
test_imagefile.py Added test 2020-08-24 21:32:55 +10:00
test_imagefont_bitmap.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_imagefont.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagefontctl.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagegrab.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagemath.py
test_imagemorph.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imageops_usm.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imageops.py testing with approx tuple to fix ubuntu test failures 2020-08-12 00:08:29 +09:00
test_imagepalette.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagepath.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imageqt.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagesequence.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imageshow.py Update pre-commit 2020-08-31 18:50:15 +10:00
test_imagestat.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagetk.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_imagewin_pointers.py
test_imagewin.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_lib_image.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_lib_pack.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_locale.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_main.py
test_map.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_mode_i16.py
test_numpy.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_pdfparser.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_pickle.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_psdraw.py
test_pyroma.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_qt_image_fromqpixmap.py
test_qt_image_toqimage.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_qt_image_toqpixmap.py
test_sgi_crash.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_shell_injection.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
test_tiff_ifdrational.py Reverted NaN change, so that NaN != NaN 2020-08-28 20:55:47 +10:00
test_uploader.py
test_util.py Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03: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

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