Andrew Murray
309ab1fc3d
Various Flake8 fixes
2015-07-03 16:22:56 +10:00
Andrew Murray
a06b59bd52
Added various tests
2015-07-03 15:03:25 +10:00
Andrew Murray
a1b71d5ee0
Added test for polygon edge drawing
2015-06-06 00:46:50 +10:00
Andrew Murray
a996033079
Fixed various typos
2015-05-29 14:59:54 +10:00
Andrew Murray
d1c182cadc
Various Flake8 fixes
2015-04-24 09:26:52 +10:00
wiredfool
1bb850427d
Slightly relax imagedraw tests to pass on x86
2014-09-30 08:33:29 -07:00
Hugo
5e676ea0bd
Merge remote-tracking branch 'upstream/master' into flake8
...
Conflicts:
Tests/bench_cffi_access.py
Tests/test_file_palm.py
Tests/test_format_hsv.py
Tests/test_image_putdata.py
Tests/test_locale.py
Tests/test_mode_i16.py
2014-09-23 16:35:20 +03:00
hugovk
b929873a62
Change some lena() to hopper()
2014-09-05 12:36:24 +03:00
hugovk
42610c0ecd
flake8
2014-08-28 17:18:54 +03:00
hugovk
1335006cd7
flake8
2014-08-28 14:44:19 +03:00
hugovk
cf04a9a0d2
Remove unused tearDownModule
2014-07-07 20:03:50 +03:00
wiredfool
e3f9fa0d78
Skip known failing test
2014-07-01 09:07:18 -07:00
wiredfool
a990af1b97
Merge from master
2014-06-24 16:48:38 -07:00
hugovk
b7f14415d8
Constants are now ALL CAPS
2014-06-23 22:51:31 +03:00
Terseus
5522fa472d
Fixed variables misprint in ImageDraw tests
2014-06-23 20:07:09 +02:00
hugovk
3ec505958e
Convert old tests to use unittest
2014-06-10 12:10:47 +03:00
hugovk
995f367755
Skip test_floodfill_border() on PyPy to avoid fatal error
2014-06-06 08:02:18 +03:00
hugovk
ae37743ac7
Both kinds of bounding box for arc, chord and pieslice.
2014-05-27 23:31:31 +03:00
hugovk
8f92562ec3
Remove old FIXME comment [CI skip]
2014-05-24 17:36:31 +03:00
hugovk
35336e5afd
Test arc, chord, pieslice give TypeError when bounding box is [(x0, y0), (x1, y1)]
2014-05-24 17:31:37 +03:00
hugovk
60b2570133
Test ImageDraw's bitmap()
2014-05-13 14:43:48 +03:00
hugovk
5b55cb72d3
Test experimental floodfill with a border
2014-05-12 23:33:05 +03:00
hugovk
961db29ff6
Test experimental floodfill()
2014-05-12 23:27:02 +03:00
hugovk
6b274b4c5e
More ImageDraw tests. Some may need redoing after issues #367 and #463 are sorted.
2014-05-12 21:45:16 +03:00
hugovk
84c7d25606
Make sure bounding box in ints (for Py3)
2014-05-12 19:55:18 +03:00
hugovk
92eea7a9cc
Tests for ImageDraw
2014-05-12 17:32:04 +03:00
Terseus
113b8c2a76
Removed non-ASCII character from messages
2014-04-09 20:06:58 +02:00
Terseus
b987d90568
Added tests for lines with 1px slope
...
This tests are designed to guarantee that the wide lines behave exactly
like normal lines drawn with the Bresenham's algorithm.
This tests are somewhat subjective since this is non-defined behavior,
but I think that mimic the Bresenham's algorithm is reliable enough.
Currently the horizontal version of this test **fail**.
2014-04-09 19:34:50 +02:00
Terseus
4b7236f460
Added tests of hor/ver lines 101px wide
...
These tests should guarantee that the proportion of the width is
maintained with a margin of error < 1%.
2014-04-09 19:34:50 +02:00
Terseus
8228caf14d
Added some oblique 45º lines tests
...
Only the oblique 3 pixels wide lines are defined:
* The oblique 2 pixels wide lines are somewhat hard to define.
* To define the oblique lines wider than 3 pixels we neet to define
first how the oblique lines should expand their width (realistic or
exact).
2014-04-09 19:33:46 +02:00
Terseus
92dd58c014
Added descriptive errors to imagedraw tests
2014-04-06 14:03:03 +02:00
Terseus
1c02d467ef
Added test for vertical lines.
...
The behavior is consistent with horizontal lines, see previous commit
for details.
2014-04-04 12:45:47 +02:00
Terseus
fee2faa8dc
Added test for horizontal lines
...
Notice that the expansion of the line width depends on the order of the
points:
* If the bigger axis value is provided as the *second* point the line
expand first to the *positive* side of the axis.
* If the bigger axis value is provided as the *first* point the line
expand first to the *negative* side of the axis.
* If the line's width is odd this doesn't matter, as the line will
expand the same amount to both sides.
This behavior should be consistent in both horizontal and vertical lines.
2014-04-04 12:35:26 +02:00
Terseus
e2cb2195eb
Added test for a simple right triangle
...
The diagonals of the right angled edges must be perfect and the bottom
vertice should be drawn.
2014-04-04 11:46:58 +02:00
Terseus
ec74779b19
Added test for a simple square
2014-04-04 11:28:41 +02:00
Terseus
7de14a51dd
Added base method and constants to test_imagedraw
...
The method `create_base_image_draw` will be used in all the new draw
tests.
2014-04-04 10:47:22 +02:00
Alex Clark
bb1b3a532c
Cleanup WS, courtesy of @Arfrever
...
find * -type f "-(" -name "*.bdf" -o -name "*.c" -o -name "*.h" -o -name "*.py" -o -name "*.rst" -o -name "*.txt" "-)" -exec sed -e "s/[[:space:]]*$//" -i {} \;
2013-06-30 18:42:19 -04: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