Jon Dufresne
7da17ad41e
Improve pytest configuration to allow specific tests as CLI args
...
The previous test configuration made it difficult to run a single test
with the pytest CLI. There were two major issues:
- The Tests directory was not a package. It now includes a __init__.py
file and imports from other tests modules are done with relative
imports.
- setup.cfg always specified the Tests directory. So even if a specific
test were specified as a CLI arg, this configuration would also always
include all tests. This configuration has been removed to allow
specifying a single test on the command line.
Contributors can now run specific tests with a single command such as:
$ tox -e py37 -- Tests/test_file_pdf.py::TestFilePdf.test_rgb
This makes it easy and faster to iterate on a single test failure and is
very familiar to those that have previously used tox and pytest.
When running tox or pytest with no arguments, they still discover and
runs all tests in the Tests directory.
2019-01-13 09:00:12 -08:00
Hugo
eb9aee7048
flake8: F841 local variable is assigned to but never used
2018-11-11 19:01:10 +02:00
Andrew Murray
ae2ffb8a05
Fixed transform fillcolor argument when image mode is RGBA or LA
2018-06-12 04:41:46 +10:00
Andrew Murray
cbc056f43d
Fixed whitespace
2018-04-18 16:00:57 +10:00
Andrew Murray
c13ccf13a1
Added missing whitespace
2018-03-06 19:53:07 +11:00
Andrew Murray
2202196162
Flake8 blank line fixes
2018-03-04 21:36:33 +11:00
Eric Soroos
fa9e9c2795
remove duplicate test
2017-11-13 11:59:26 +00:00
Eric Soroos
52b6894865
parameter name change
2017-11-13 11:59:12 +00:00
wiredfool
dce04b680b
Pass in fill color to transform.
2017-11-11 16:47:31 +00:00
Andrew Murray
9e843a2d9b
Changed format of lambda calls
2017-09-01 21:05:40 +10:00
Andrew Murray
e67ee44ea8
Added test for missing method data in Image transform
2017-01-28 14:21:41 +11:00
Andrew Murray
5c59603fcf
Fixed typos
2016-08-31 20:12:07 +10:00
homm
993e49c0be
Merge branch 'master' into rotation-pixel-center
2016-08-07 13:47:16 +03:00
homm
5b8c8aa389
improve resize test
2016-07-11 00:47:58 +03:00
homm
1321713688
repeat all affine tests with PERSPECTIVE
2016-07-11 00:26:12 +03:00
homm
ad3f7238d2
add translate tests
2016-07-10 21:48:19 +03:00
homm
ac747d2290
resize transform tests
2016-07-10 16:09:33 +03:00
homm
2522101ed7
tests for 90 degree transformation
2016-07-10 15:23:01 +03:00
homm
1ba4e9e5ba
remove end of file banner from all files
2016-07-10 14:11:28 +03:00
Andrew Murray
444d9d5731
Changed variable name foo since it has been blacklisted in health
2015-04-01 10:29:26 +11:00
homm
aabf66a7a4
fix tests: use im.transform
directly when result is compared
...
with other transform operations.
2014-11-10 02:11:12 +03:00
hugovk
f10bdf7cd1
Fix test
2014-09-14 21:21:16 +03:00
hugovk
8dad2b0c63
Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures
2014-09-05 13:03:56 +03:00
hugovk
15c92359cc
Merge some similar tests to a single file
2014-07-20 01:17:32 +03:00
hugovk
cf04a9a0d2
Remove unused tearDownModule
2014-07-07 20:03:50 +03:00
hugovk
1633ffa878
Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup
...
Conflicts:
Tests/test_file_jpeg2k.py
Tests/test_image_transform.py
Tests/test_imagesequence.py
2014-06-23 13:39:27 +03:00
hugovk
3ec505958e
Convert old tests to use unittest
2014-06-10 12:10:47 +03:00
wiredfool
618a79c1c6
Merge from master, pre-unittest conversion
2014-06-03 14:42:22 -07:00
hugovk
c9a4272af6
Replace python-imaging with python-pillow (but yet not Coveralls)
2014-06-03 13:02:44 +03:00
wiredfool
54173d2c67
Cherry-pick of portions of patch a500ca1393
, many shortcut ops added, no functional changes
2014-05-09 21:36:15 -07:00
wiredfool
7077cd18af
Tests for premultiplication on transform/resize
2013-10-04 12:55:25 -07:00
wiredfool
a0d7e72cbb
don't write the test image
2013-09-30 22:47:22 -07:00
wiredfool
7546e1fb17
Py3. sigh
2013-09-30 22:39:17 -07:00
wiredfool
46c58560ba
adding memset test
2013-09-30 22:39:17 -07:00
wiredfool
2afdc3776d
quad test, with blank space test
2013-09-30 22:39:17 -07:00
wiredfool
2241f744d9
extents test
2013-09-30 22:39:17 -07:00
wiredfool
5e897341c6
Added mesh transform test
2013-09-30 22:39:17 -07:00
Brian Crowell
ad784eb808
py3k: Import Christoph Gohlke's test suite
...
This is Christoph Gohlke's test suite from his personal PIL package found
at http://www.lfd.uci.edu/~gohlke/pythonlibs/ .
This is just to bring it in as a separate commit. Future commits will align
it with Pillow.
2013-01-10 08:46:39 -06:00