Pillow/Tests
2020-09-04 23:28:43 +03:00
..
fonts
icc
images Merge pull request #4846 from comhar/features/compute_polygon_coordinates 2020-09-04 23:28:43 +03:00
__init__.py
32bit_segfault_check.py
bench_cffi_access.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
check_fli_oob.py
check_fli_overflow.py
check_icns_dos.py
check_imaging_leaks.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_j2k_dos.py
check_j2k_leaks.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_j2k_overflow.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_jp2_overflow.py
check_jpeg_leaks.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_large_memory_numpy.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_large_memory.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_libtiff_segfault.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
check_png_dos.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
check_tiff_crashes.py
conftest.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
createfontdatachunk.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
helper.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
README.rst
test_000_sanity.py
test_binary.py
test_bmp_reference.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_box_blur.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_color_lut.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_core_resources.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_decompression_bomb.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_features.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_apng.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_blp.py
test_file_bmp.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_bufrstub.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_container.py
test_file_cur.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_dcx.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_dds.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_eps.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_fitsstub.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_fli.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_fpx.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_ftex.py
test_file_gbr.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_gd.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_gif.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_gimpgradient.py
test_file_gimppalette.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_gribstub.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_hdf5stub.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_icns.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_ico.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_im.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_iptc.py
test_file_jpeg.py Merge pull request #4862 from radarhere/subifds 2020-09-02 16:58:55 +03:00
test_file_jpeg2k.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_libtiff_small.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_libtiff.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_mcidas.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_mic.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_mpo.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_msp.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_palm.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_pcd.py
test_file_pcx.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_pdf.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_pixar.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_png.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_ppm.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_psd.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_sgi.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_spider.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_sun.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_tar.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_tga.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_tiff_metadata.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_tiff.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_wal.py
test_file_webp_alpha.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_webp_animated.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_webp_lossless.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_webp_metadata.py
test_file_webp.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_wmf.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_xbm.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_xpm.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_file_xvthumb.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_font_bdf.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_font_leaks.py
test_font_pcf_charsets.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
test_font_pcf.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_format_hsv.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_format_lab.py
test_image_access.py Merge pull request #4882 from nulano/putpixel 2020-09-03 19:22:30 +03:00
test_image_array.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_convert.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_copy.py
test_image_crop.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_draft.py
test_image_entropy.py
test_image_filter.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_frombytes.py
test_image_fromqimage.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +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 Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_mode.py
test_image_paste.py
test_image_point.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_putalpha.py
test_image_putdata.py
test_image_putpalette.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_quantize.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_reduce.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_resample.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_resize.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_image_transpose.py
test_image.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagechops.py
test_imagecms.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagecolor.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagedraw.py Merge pull request #4846 from comhar/features/compute_polygon_coordinates 2020-09-04 23:28:43 +03:00
test_imagedraw2.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
test_imageenhance.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagefile.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagefont_bitmap.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagefont.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagefontctl.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagegrab.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagemath.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
test_imagemorph.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imageops_usm.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imageops.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagepalette.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagepath.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imageqt.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagesequence.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imageshow.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagestat.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagetk.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_imagewin_pointers.py
test_imagewin.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_lib_image.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_lib_pack.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_locale.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_main.py
test_map.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_mode_i16.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
test_numpy.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_pdfparser.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_pickle.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_psdraw.py
test_pyroma.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_qt_image_fromqpixmap.py
test_qt_image_toqimage.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_qt_image_toqpixmap.py Upgrade Python syntax for 3.6+ 2020-07-30 10:09:18 +03:00
test_sgi_crash.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_shell_injection.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_tiff_ifdrational.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
test_uploader.py
test_util.py Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +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