Pillow/Tests
wiredfool cfbe49f124 Merge pull request #994 from homm/add-transpose
Add transpose and cache aware rotation
2014-11-07 13:58:18 -08:00
..
fonts
icc Licensed, freely available icc profiles 2014-09-24 21:47:32 -07:00
images Merge pull request #980 from wiredfool/pr_938 2014-10-29 21:41:17 +02:00
32bit_segfault_check.py
bench_cffi_access.py
bench_get.py
check_icns_dos.py
check_j2k_dos.py
check_j2k_leaks.py Don't run memory leak test automatically. 2014-09-12 22:45:02 -07:00
check_jpeg_leaks.py Tests for jpeg memory leaks 2014-09-24 15:45:41 -07:00
crash_ttf_memory_error.py
helper.py Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
import_all.py
large_memory_numpy_test.py
large_memory_test.py
make_hash.py
README.rst
show_icc.py
show_mcidas.py
test_000_sanity.py
test_bmp_reference.py
test_cffi.py
test_decompression_bomb.py
test_file_bmp.py
test_file_cur.py
test_file_dcx.py
test_file_eps.py Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
test_file_fli.py Replace lena.fli with hopper.fli 2014-09-29 10:40:33 -07:00
test_file_gif.py Merge branch 'master' into flake8 2014-09-14 10:23:51 +03:00
test_file_gimpgradient.py Relax exact equals to approximate 2014-09-29 16:36:09 -07:00
test_file_icns.py
test_file_ico.py
test_file_iptc.py
test_file_jpeg.py Fix AssertionError in TestFileJpeg.test_save_cjpeg 2014-09-29 11:35:46 -07:00
test_file_jpeg2k.py
test_file_libtiff_small.py Replace lena_g4.tif with hopper_g4.tif 2014-09-23 10:30:55 +03:00
test_file_libtiff.py Added 4bit test to libtiff as well 2014-10-29 11:07:20 -07:00
test_file_mpo.py
test_file_msp.py Don't use builtin as variable 2014-11-01 09:55:15 +02:00
test_file_palm.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_file_pcx.py
test_file_pdf.py
test_file_png.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_file_ppm.py
test_file_psd.py Replace lena.psd with hopper.psd 2014-09-23 13:53:51 +03:00
test_file_sgi.py
test_file_spider.py
test_file_sun.py
test_file_tar.py
test_file_tga.py
test_file_tiff_metadata.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_file_tiff.py Merge remote-tracking branch 'upstream/master' into landscape-fixes 2014-11-01 09:44:10 +02:00
test_file_webp_alpha.py Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
test_file_webp_lossless.py
test_file_webp_metadata.py Skip webp mux with the right skip message 2014-10-11 09:42:10 -07:00
test_file_webp.py Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
test_file_xbm.py
test_file_xpm.py Replace lena.xpm with hopper.xpm 2014-09-23 16:01:58 +03:00
test_font_bdf.py
test_font_pcf.py
test_format_hsv.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_format_lab.py
test_image_array.py
test_image_convert.py
test_image_copy.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_image_crop.py
test_image_draft.py Fix typo: fihopperme -> filename 2014-09-15 08:59:28 +03:00
test_image_filter.py
test_image_frombytes.py
test_image_getbands.py
test_image_getbbox.py
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
test_image_getpalette.py
test_image_getpixel.py
test_image_getprojection.py
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
test_image_mode.py
test_image_offset.py
test_image_point.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_image_putalpha.py
test_image_putdata.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_image_putpalette.py
test_image_putpixel.py
test_image_quantize.py
test_image_resize.py
test_image_rotate.py
test_image_split.py
test_image_thumbnail.py
test_image_tobitmap.py
test_image_tobytes.py
test_image_transform.py Fix test 2014-09-14 21:21:16 +03:00
test_image_transpose.py use not square image for test, fix tests 2014-11-07 13:15:51 +03:00
test_image.py
test_imagechops.py
test_imagecms.py Updated merge from master 2014-09-26 16:07:52 -07:00
test_imagecolor.py
test_imagedraw.py Slightly relax imagedraw tests to pass on x86 2014-09-30 08:33:29 -07:00
test_imageenhance.py Test for alpha preservation in ImageEnhance, #899 2014-09-18 09:10:08 -07:00
test_imagefile.py Test failure explanation on PPC 2014-09-29 22:28:11 -07:00
test_imagefileio.py
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 Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
test_imageops_usm.py
test_imageops.py
test_imagepalette.py
test_imagepath.py
test_imageqt.py
test_imagesequence.py
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 Merge from master 2014-09-23 09:52:03 -07:00
test_imaging_stretch.py Make test_imaging_stretch.py runnable as a standalone script 2014-11-06 11:49:30 +02:00
test_lib_image.py
test_lib_pack.py
test_locale.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +03:00
test_mode_i16.py s/lena/hopper/ 2014-09-23 09:52:34 -07:00
test_numpy.py
test_olefileio.py
test_pickle.py Fix typo: fihopperme -> filename 2014-09-15 08:59:28 +03:00
test_pyroma.py Relax pyroma for RC versions 2014-09-29 13:14:49 -07:00
test_scipy.py Fix for regression in scipy 2014-10-04 23:19:30 +00:00
test_shell_injection.py Merge branch 'master' into flake8 2014-09-14 10:23:51 +03:00
test_util.py
threaded_save.py Merge remote-tracking branch 'upstream/master' into flake8 2014-09-23 16:35:20 +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