Running the tests
Anthony Lenton
antoniolenton at gmail.com
Thu May 29 00:12:20 CEST 2008
Hello,
I checked out thuban's svn today, hopefully to start sending in a
patch or two or writing an extension.
After a while I was able to run the tests.
Those needing gdalwarp were skipped until I realised that I needed to
compile the extensions, and the ones needing postgis needed a bit of a
help to figure out where the postgis SQL file was (find_postgis_sql
wasn't figuring out my Ubuntu Hardy installation).
The problem is that most tests in test_save.py still fail. I've
installed pyRXP from svn (rev 3203), should I use a different version,
are the tests broken for the time being or am I doing something wrong?
I'm sending the output of running these tests, sorry for the lengthy post.
Thanks!
--
Anthony Lenton
Except - The good guys in software development
http://except.com.ar
---------------------------------------------------------------------
anthony at daphne:~/svn/thuban/trunk/thuban/test$ python runtests.py test_save
FFFFFFFF..
======================================================================
FAIL: test_save.SaveSessionTest.testClassifiedLayer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
409, in testClassifiedLayer
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.testEmptySession
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
120, in testEmptySession
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.testLayerProjection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
246, in testLayerProjection
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.testRasterLayer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
300, in testRasterLayer
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.testSingleLayer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
174, in testSingleLayer
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.test_dbf_table
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
436, in test_dbf_table
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.test_joined_table
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
516, in test_joined_table
self.validate_data(written_contents)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
======================================================================
FAIL: test_save.SaveSessionTest.test_save_postgis
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anthony/svn/thuban/trunk/thuban/test/test_save.py", line
586, in test_save_postgis
self.validate_data(written)
File "/home/anthony/svn/thuban/trunk/thuban/test/xmlsupport.py",
line 41, in validate_data
parser.parse(data, eoCB = self.rxp_eo_cb)
AssertionError: Error: Expected whitespace after attribute type
in unnamed entity at line 180 char 37 of
file:///home/anthony/svn/thuban/trunk/thuban/test/../Resources/XML/thuban-1.2.1.dtd
Expected whitespace after attribute type
Parse Failed!
----------------------------------------------------------------------
Ran 10 tests in 0.475s
FAILED (failures=8)
skipped = 0
0x82fd28c LAYER_PROJECTION_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd28c LAYER_LEGEND_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd28c CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd28c LAYER_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd28c LAYER_VISIBILITY_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd30c CLASS_CHANGED
method _classification_changed of <Thuban.Model.layer.Layer instance
at 0x82fd28c>
0x82fd18c LAYER_PROJECTION_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd18c LAYER_LEGEND_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd18c CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd18c LAYER_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82fd18c LAYER_VISIBILITY_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x82f2c4c LAYER_VISIBILITY_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c MAP_PROJECTION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c EXTENSION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c LAYER_PROJECTION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c LAYER_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c MAP_LAYERS_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c4c EXTENSION_OBJECTS_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x82f2c0c>
0x82f2c6c CHANGED
method forward of <Thuban.Model.map.Map instance at 0x82f2c4c>
0x83654ac CHANGED
method forward of <Thuban.Model.map.Map instance at 0x83879ec>
0x838146c CLASS_CHANGED
method _classification_changed of <Thuban.Model.layer.Layer instance
at 0x838158c>
0x838158c LAYER_PROJECTION_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x83879ec>
0x838158c LAYER_LEGEND_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x83879ec>
0x838158c CHANGED
method forward of <Thuban.Model.map.Map instance at 0x83879ec>
0x838158c LAYER_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x83879ec>
0x838158c LAYER_VISIBILITY_CHANGED
method forward of <Thuban.Model.map.Map instance at 0x83879ec>
0x82fd1ac CLASS_CHANGED
method _classification_changed of <Thuban.Model.layer.Layer instance
at 0x82fd18c>
0x83879ec LAYER_VISIBILITY_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec MAP_PROJECTION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec EXTENSION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec LAYER_PROJECTION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec LAYER_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec MAP_LAYERS_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
0x83879ec EXTENSION_OBJECTS_CHANGED
method forward of <Thuban.Model.session.Session instance at 0x838792c>
anthony at daphne:~/svn/thuban/trunk/thuban/test$
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)