Pillow/Tests
2019-06-19 22:32:01 +10:00
..
fonts Do not presume that the last glyph has the max x value 2019-06-19 22:32:01 +10:00
icc Corrected filename [ci skip] 2016-05-03 19:23:51 +10:00
images Do not presume that the last glyph has the max x value 2019-06-19 22:32:01 +10:00
__init__.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
32bit_segfault_check.py Set executable flag on scripts with shebang line 2017-03-31 19:43:19 +11:00
bench_cffi_access.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
bench_get.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_fli_overflow.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_icns_dos.py Added py3 variable to _util 2018-04-20 09:19:13 +10:00
check_imaging_leaks.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_j2k_dos.py Added py3 variable to _util 2018-04-20 09:19:13 +10:00
check_j2k_leaks.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_j2k_overflow.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_jpeg_leaks.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_large_memory_numpy.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_large_memory.py Changed decode buffer size to Py_ssize_t 2019-04-15 17:33:28 +10:00
check_libtiff_segfault.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
check_png_dos.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
createfontdatachunk.py Remove unused 'sys' import 2018-12-04 23:25:28 +02:00
helper.py Revert "Use bare 'raise' to re-raise exceptions" 2019-01-14 21:55:47 +11:00
import_all.py Updated paths for src directory 2017-12-31 07:11:26 +11:00
make_hash.py Clean up commented out debug print statements 2018-09-04 20:02:42 -07:00
README.rst Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_000_sanity.py Merge pull request #3624 from hugovk/rm-VERSION 2019-03-02 11:47:59 +11:00
test_binary.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_bmp_reference.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_box_blur.py Fixed typo 2019-06-05 19:32:50 +10:00
test_color_lut.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_core_resources.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_decompression_bomb.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_features.py Add __main__.py to output basic format and support information 2019-05-27 18:44:04 -07:00
test_file_blp.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_bmp.py Consistent DPI rounding 2019-03-30 15:03:57 +11:00
test_file_bufrstub.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_container.py Merge pull request #3568 from jdufresne/isatty-bool 2019-02-27 23:28:51 +02:00
test_file_cur.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_dcx.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_dds.py Added tests for unimplemented formats 2019-02-23 08:53:45 +11:00
test_file_eps.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_fitsstub.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_fli.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_fpx.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_ftex.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_gbr.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_gd.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_gif.py Expand GIF to include frames with extents outside the image size 2019-05-02 19:46:17 +10:00
test_file_gimpgradient.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_gimppalette.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_gribstub.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_hdf5stub.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_icns.py Allow ICNS to change size as ICO does 2019-06-12 02:19:58 +10:00
test_file_ico.py Do not load ICO if already loaded 2019-06-12 02:18:54 +10:00
test_file_im.py Fixed reading and saving for TIFF and IM in PA mode 2019-05-11 14:43:48 +10:00
test_file_iptc.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_jpeg.py Fixed reading APP13 marker without Photoshop data 2019-04-05 20:02:45 +11:00
test_file_jpeg2k.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_libtiff_small.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_libtiff.py Fix bits value for RGB;16N unpackers 2019-05-10 08:07:01 +10:00
test_file_mcidas.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_mic.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_mpo.py Parse Nintendo and Fujifilm MakerNote tags 2019-03-28 21:13:12 +11:00
test_file_msp.py Renamed file variable 2019-03-03 13:02:00 +11:00
test_file_palm.py Removed duplicate code 2019-05-04 23:05:07 +10:00
test_file_pcd.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_pcx.py Added mime type tests 2019-03-04 15:51:07 +11:00
test_file_pdf.py Fixed dimensions of 1-bit PDFs 2019-05-04 16:27:34 +10:00
test_file_pixar.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_png.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_file_ppm.py Merge branch 'master' into mime-types 2019-03-06 07:08:00 +11:00
test_file_psd.py Close internal fp when closing and deleting 2019-06-12 20:12:03 +10:00
test_file_sgi.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_spider.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_sun.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_tar.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_tga.py Added mime type tests 2019-03-04 15:51:07 +11:00
test_file_tiff_metadata.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_tiff.py Fixed reading and saving for TIFF and IM in PA mode 2019-05-11 14:43:48 +10:00
test_file_wal.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_webp_alpha.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_webp_animated.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_webp_lossless.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_webp_metadata.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_webp.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_wmf.py Consistent DPI rounding 2019-03-30 15:03:57 +11:00
test_file_xbm.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_xpm.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_file_xvthumb.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_font_bdf.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_font_leaks.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_font_pcf.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_format_hsv.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_format_lab.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_access.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_array.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_convert.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_image_copy.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_crop.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_draft.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_filter.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_frombytes.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_fromqimage.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_getbands.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_getbbox.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_getcolors.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_image_getdata.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_image_getextrema.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_image_getim.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_getpalette.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_getprojection.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_histogram.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_image_load.py Only close exclusive fp on Image __exit__ 2019-03-06 21:55:32 +11:00
test_image_mode.py Added mode descriptors for all I;16 modes 2019-06-12 20:33:00 +10:00
test_image_paste.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_point.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_putalpha.py Promote P images to PA in putalpha 2019-03-19 11:13:58 +11:00
test_image_putdata.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_putpalette.py Allow putpalette for LA and PA 2019-03-29 23:13:50 +11:00
test_image_quantize.py Update palette in quantize 2019-03-16 13:36:58 +11:00
test_image_resample.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_resize.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_rotate.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_split.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_thumbnail.py Do not resize if already the destination size 2019-02-13 19:26:37 +11:00
test_image_tobitmap.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_tobytes.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_image_transform.py Updated resampling filter error messages 2019-06-06 21:36:38 +10:00
test_image_transpose.py Added support for I;16 modes for remaining transpose operations 2019-03-23 14:13:39 +11:00
test_image.py Fixed opening mmap image through Path on Windows 2019-05-04 15:00:49 +10:00
test_imagechops.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagecms.py Merge branch 'master' into imagecms-deprecations 2019-02-13 15:45:28 +02:00
test_imagecolor.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagedraw.py Fixed arc gaps 2019-05-03 23:37:37 +10:00
test_imagedraw2.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imageenhance.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagefile.py Added get_ifd method to access embedded IFDs 2019-03-28 21:13:12 +11:00
test_imagefont_bitmap.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagefont.py Added variation font support 2019-06-19 20:27:49 +10:00
test_imagefontctl.py Do not presume that the last glyph has the max x value 2019-06-19 22:32:01 +10:00
test_imagegrab.py Added option to include layered windows in ImageGrab.grab on Windows 2019-04-26 20:09:46 +10:00
test_imagemath.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_imagemorph.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imageops_usm.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imageops.py Moved ImageFile.Exif to Image.Exif 2019-04-01 20:03:02 +11:00
test_imagepalette.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagepath.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imageqt.py Catch DeprecationWarning from initial import 2019-02-16 12:36:10 +11:00
test_imagesequence.py Use _min_frame in ImageSequence.Iterator 2019-06-12 20:11:51 +10:00
test_imageshow.py Increased test coverage 2019-06-12 20:30:43 +10:00
test_imagestat.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagetk.py Fixed ImageTk getimage 2019-04-29 23:43:13 +10:00
test_imagewin_pointers.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_imagewin.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_lib_image.py Improve pytest configuration to allow specific tests as CLI args 2019-01-13 09:00:12 -08:00
test_lib_pack.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_locale.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_main.py Add __main__.py to output basic format and support information 2019-05-27 18:44:04 -07:00
test_map.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_mode_i16.py Revert "Merge pull request #3838 from radarhere/i_conversion" 2019-06-11 19:28:31 +10:00
test_numpy.py Fixed numpy bool bug 2019-04-13 00:25:59 +10:00
test_pdfparser.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_pickle.py Fixed palette for LA and PA mode when pickling 2019-05-11 14:43:00 +10:00
test_psdraw.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_pyroma.py Tighten fixed pyroma test 2019-06-02 22:36:05 +03:00
test_qt_image_fromqpixmap.py Resolved segfaults 2019-04-02 09:25:27 +11:00
test_qt_image_toqimage.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_qt_image_toqpixmap.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_shell_injection.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_tiff_ifdrational.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_uploader.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
test_util.py Restored required import 2019-02-20 20:57:52 +11:00
test_webp_leaks.py Remove unnecessary unittest.main() boilerplate from test files 2019-02-03 10:10:16 -08:00
threaded_save.py Flake8 blank line fixes 2018-03-04 21:36:33 +11:00
versions.py Do not write custom tags with libtiff < 4 2018-11-12 06:14:04 +11:00

Pillow Tests
============

Test scripts are named ``test_xxx.py`` and use the ``unittest`` module. A base class and helper functions can be found in ``helper.py``.

Dependencies
-----------

Install::

    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-report term
    coverage html
    open htmlcov/index.html