Pillow/Tests
2014-06-25 12:46:52 +03:00
..
fonts Removing buffer from imagefont 2013-04-25 18:48:43 +02:00
icc py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
images Merge pull request #654 from wiredfool/cleanup 2014-06-24 12:16:13 +03:00
bench_cffi_access.py Convert bench_cffi_access.py to use unittest and helper.py 2014-06-25 12:19:27 +03:00
bench_get.py Remove last dependencies on tester.py and remove file 2014-06-25 12:46:52 +03:00
cms_test.py MAINT: replace is True: by : 2014-01-08 08:43:01 -05:00
crash_ttf_memory_error.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
helper.py More tests cleanup 2014-06-25 12:10:20 +03:00
import_all.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
large_memory_numpy_test.py Convert large_memory_numpy_test.py to use unittest (and change second XDIM on line 36 to YDIM) 2014-06-25 12:43:01 +03:00
large_memory_test.py Convert large_memory_numpy_test.py to use unittest (and change second XDIM on line 36 to YDIM) 2014-06-25 12:43:01 +03:00
make_hash.py flake8 Tests/make_hash.py 2014-06-25 12:25:51 +03:00
README.md Change Tests/README.txt to .md [CI skip] 2014-06-24 14:04:47 +03:00
show_icc.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
show_mcidas.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_000_sanity.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_bmp_reference.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_cffi.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_decompression_bomb.py Fix path 2014-06-23 14:38:03 -04:00
test_file_bmp.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_eps.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_fli.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_gif.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_icns.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_ico.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_jpeg.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_jpeg2k.py Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup 2014-06-23 13:39:27 +03:00
test_file_libtiff_small.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_libtiff.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_msp.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_pcx.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_pdf.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_png.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_ppm.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_psd.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_spider.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_tar.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_tiff_metadata.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_tiff.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_webp_alpha.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_webp_lossless.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_webp_metadata.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_webp.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_file_xbm.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_file_xpm.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_font_bdf.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_font_pcf.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_format_lab.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_array.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_convert.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_image_copy.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_crop.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_draft.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_image_filter.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_frombytes.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getbands.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getbbox.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getcolors.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getdata.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getextrema.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getim.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getpalette.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getpixel.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_getprojection.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_histogram.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_load.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_image_mode.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_offset.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_point.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putalpha.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putdata.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putpalette.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_putpixel.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_quantize.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_resize.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_rotate.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_split.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_thumbnail.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_tobitmap.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_tobytes.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image_transform.py Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup 2014-06-23 13:39:27 +03:00
test_image_transpose.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_image.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagechops.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagecms.py Proper skipping of tests when lcms2 is not installed 2014-06-19 06:06:23 -07:00
test_imagecolor.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagedraw.py Constants are now ALL CAPS 2014-06-23 22:51:31 +03:00
test_imageenhance.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefile.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefileio.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefilter.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagefont.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagegrab.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagemath.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagemode.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagemorph.py Converted to unittest framework to deal with test framework error 2014-06-23 16:52:10 -07:00
test_imageops_usm.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_imageops.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagepalette.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagepath.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imageqt.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagesequence.py Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup 2014-06-23 13:39:27 +03:00
test_imageshow.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagestat.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagetk.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagetransform.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_imagewin.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_lib_image.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_lib_pack.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_locale.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
test_mode_i16.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_numpy.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_olefileio.py Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
test_pickle.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
threaded_save.py Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
versions.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00

Pillow test files.

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

Run the tests from the root of the Pillow source distribution:

python selftest.py
nosetests Tests/test_*.py

Or with coverage:

coverage run --append --include=PIL/* selftest.py
coverage run --append --include=PIL/* -m nose Tests/test_*.py
coverage report
coverage html
open htmlcov/index.html

To run an individual test:

python Tests/test_image.py