Pillow/Tests
2014-09-23 10:30:14 +03:00
..
fonts
icc
images Created with ImageMagick: convert hopper.png -compress group4 hopper_g4.tif 2014-09-23 10:30:14 +03:00
32bit_segfault_check.py
bench_cffi_access.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
bench_get.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
check_icns_dos.py Icns DOS fix -- CVE-2014-3589 2014-08-13 09:25:11 -07:00
check_j2k_dos.py J2k DOS fix -- CVE-2014-3598 2014-08-19 08:25:40 -07:00
check_j2k_leaks.py Don't run memory leak test automatically. 2014-09-12 22:45:02 -07:00
crash_ttf_memory_error.py
helper.py On Windows, do not execute convert.exe without specifying path 2014-09-21 17:50:07 -07:00
import_all.py
large_memory_numpy_test.py
large_memory_test.py
make_hash.py Storage, packing and access for HSV format images 2014-07-22 16:09:22 -07:00
README.rst Additional dependencies [ci skip] 2014-08-26 14:48:17 -07:00
show_icc.py
show_mcidas.py
test_000_sanity.py
test_bmp_reference.py
test_cffi.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_decompression_bomb.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_bmp.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_cur.py
test_file_dcx.py Replace lena.dcx with hopper.dcx. Created with ImageMagick: convert hopper.ppm hopper.dcx 2014-09-04 13:24:53 +03:00
test_file_eps.py Don't test internal python functions 2014-09-12 21:41:12 -07:00
test_file_fli.py
test_file_gif.py Fix constant name 2014-09-04 09:42:31 +03:00
test_file_gimpgradient.py Test GimpGradientFile.sine() 2014-08-26 12:21:08 +03:00
test_file_icns.py
test_file_ico.py Replace lena.ico with hopper.ico. Created with ImageMagick: convert hopper.jpg -resize 16x16 hopper.ico 2014-09-04 13:29:35 +03:00
test_file_iptc.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_jpeg.py Fix test 2014-09-22 12:37:35 +03:00
test_file_jpeg2k.py Need 'temp_' or 'temp.' in filename 2014-08-20 00:36:29 +03:00
test_file_libtiff_small.py Refactor inheritance tree of test_file_libtiff_small 2014-08-26 09:58:23 -07:00
test_file_libtiff.py Replace lena.tif with hopper.tif (created with ImageMagick) 2014-09-05 12:14:45 +03:00
test_file_mpo.py Better documented limited MPO save feature. 2014-07-30 09:17:36 -07:00
test_file_msp.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_palm.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_pcx.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_pdf.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_png.py Fix for handling P + transparency -> RGBA conversions 2014-09-20 10:27:52 -07:00
test_file_ppm.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_psd.py
test_file_sgi.py Replace lena.rgb and lena.bw with hopper 2014-09-04 10:31:16 +03:00
test_file_spider.py Replace lena.spider with hopper.spider, created with Pillow. 2014-09-04 12:28:37 +03:00
test_file_sun.py Replace lena.ras with hopper.ras, created with ImageMagick: convert hopper.jpg hopper.ras 2014-09-04 12:59:03 +03:00
test_file_tar.py Replace lena.tar with hopper.tar 2014-09-04 12:21:19 +03:00
test_file_tga.py rename test 2014-08-20 10:39:11 +04:00
test_file_tiff_metadata.py Replace lena.tif with hopper.tif (created with ImageMagick) 2014-09-05 12:14:45 +03:00
test_file_tiff.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_webp_alpha.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_webp_lossless.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_file_webp_metadata.py
test_file_webp.py Remove temporary save line 2014-09-22 19:01:50 +03:00
test_file_xbm.py
test_file_xpm.py
test_font_bdf.py
test_font_pcf.py
test_format_hsv.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_format_lab.py
test_image_array.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_convert.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_copy.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_crop.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_draft.py Fix typo: fihopperme -> filename 2014-09-15 08:59:28 +03:00
test_image_filter.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_frombytes.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_getbands.py
test_image_getbbox.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_getcolors.py Fix tests. test_trns_p() needed assert_image_similar() in place of assert_image_equal() 2014-09-14 20:00:13 +03:00
test_image_getdata.py Fix tests. test_trns_p() needed assert_image_similar() in place of assert_image_equal() 2014-09-14 20:00:13 +03:00
test_image_getextrema.py Fix tests. test_trns_p() needed assert_image_similar() in place of assert_image_equal() 2014-09-14 20:00:13 +03:00
test_image_getim.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_getpalette.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_getpixel.py
test_image_getprojection.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_histogram.py Fix tests. test_trns_p() needed assert_image_similar() in place of assert_image_equal() 2014-09-14 20:00:13 +03:00
test_image_load.py Replace lena.gif with hopper.gif 2014-09-04 08:44:46 +03:00
test_image_mode.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_offset.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_point.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_putalpha.py
test_image_putdata.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_putpalette.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_putpixel.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_quantize.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_resize.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_rotate.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_split.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_thumbnail.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_tobitmap.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_tobytes.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image_transform.py Fix test 2014-09-14 21:21:16 +03:00
test_image_transpose.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_image.py Update epsilona for hopper 2014-09-04 09:40:14 +03:00
test_imagechops.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_imagecms.py Replace some lena with hopper 2014-09-14 22:58:23 +03:00
test_imagecolor.py
test_imagedraw.py Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
test_imageenhance.py Test for alpha preservation in ImageEnhance, #899 2014-09-18 09:10:08 -07:00
test_imagefile.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_imagefileio.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_imagefont.py
test_imagegrab.py Yet another Python 3 fix 2014-09-16 17:41:03 +03:00
test_imagemath.py
test_imagemorph.py
test_imageops_usm.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_imageops.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_imagepalette.py
test_imagepath.py
test_imageqt.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_imagesequence.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_imageshow.py
test_imagestat.py Fix tests. test_trns_p() needed assert_image_similar() in place of assert_image_equal() 2014-09-14 20:00:13 +03:00
test_imagetk.py
test_imagewin.py
test_lib_image.py
test_lib_pack.py
test_locale.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_mode_i16.py Fix typo: fihopperme -> filename 2014-09-15 08:59:28 +03:00
test_numpy.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
test_olefileio.py
test_pickle.py Fix typo: fihopperme -> filename 2014-09-15 08:59:28 +03:00
test_pyroma.py
test_shell_injection.py Replace lena.gif with hopper.gif 2014-09-04 08:44:46 +03:00
test_util.py
threaded_save.py Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
versions.py

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``.

Depedencies
-----------

Install::

    pip install coverage nose

If you're using Python 2.6, there's one additional dependency::
  
    pip install unittest2

Execution
---------

**If Pillow has been built in-place**

To run an individual test::

    python Tests/test_image.py

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

    nosetests -vx Tests/test_*.py

Or with coverage::

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

**If Pillow has been installed**

To run an individual test::

    ./test-installed.py Tests/test_image.py

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

    ./test-installed.py