all tests done and working
phew
This commit is contained in:
parent
93ab9fd661
commit
d6ff5f24c6
1
TODO
1
TODO
@ -1,4 +1,3 @@
|
||||
- similarity problems? see test_resample
|
||||
|
||||
- add imageize from 2D arrays, eg. we should be able to write
|
||||
|
||||
|
@ -8,6 +8,7 @@ EXTRA_DIST = \
|
||||
test_thumbnail.sh \
|
||||
test_threading.sh \
|
||||
test_python.sh
|
||||
test_all.py \
|
||||
test_arithmetic.py \
|
||||
test_colour.py \
|
||||
test_conversion.py \
|
||||
@ -20,8 +21,6 @@ EXTRA_DIST = \
|
||||
|
||||
# don't run test_thumbnail.sh by default, it takes ages
|
||||
|
||||
# test with python2 and python3 ... we are supposed to work with either
|
||||
|
||||
TESTS = \
|
||||
test_cli.sh \
|
||||
test_formats.sh \
|
||||
|
17
test/test_all.py
Executable file
17
test/test_all.py
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import unittest
|
||||
|
||||
from test_arithmetic import *
|
||||
from test_colour import *
|
||||
from test_conversion import *
|
||||
from test_convolution import *
|
||||
from test_create import *
|
||||
from test_draw import *
|
||||
from test_histogram import *
|
||||
from test_morphology import *
|
||||
from test_resample import *
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,7 +3,7 @@
|
||||
# this test is also in test_resample.py (though much smaller and neater) ...
|
||||
# keep this test to exercise the cli interface
|
||||
|
||||
set -x
|
||||
# set -x
|
||||
|
||||
. ./variables.sh
|
||||
|
||||
|
@ -10,24 +10,8 @@
|
||||
|
||||
echo "testing with python2 ..."
|
||||
|
||||
python2 test_arithmetic.py
|
||||
python2 test_colour.py
|
||||
python2 test_conversion.py
|
||||
python2 test_convolution.py
|
||||
python2 test_create.py
|
||||
python2 test_draw.py
|
||||
python2 test_histogram.py
|
||||
python2 test_morphology.py
|
||||
python2 test_resample.py
|
||||
python2 test_all.py
|
||||
|
||||
echo "testing with python3 ..."
|
||||
|
||||
python3 test_colour.py
|
||||
python3 test_arithmetic.py
|
||||
python3 test_conversion.py
|
||||
python3 test_convolution.py
|
||||
python3 test_create.py
|
||||
python3 test_draw.py
|
||||
python3 test_histogram.py
|
||||
python3 test_morphology.py
|
||||
python3 test_resample.py
|
||||
python3 test_all.py
|
||||
|
@ -41,8 +41,7 @@ class TestResample(unittest.TestCase):
|
||||
x = im
|
||||
interpolate = Vips.Interpolate.new(name)
|
||||
for i in range(4):
|
||||
# 90 degree rotate
|
||||
x = x.affine([0, -1, 1, 0], interpolate = interpolate)
|
||||
x = x.affine([0, 1, 1, 0], interpolate = interpolate)
|
||||
|
||||
self.assertEqual((x - im).abs().max(), 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user