AIFDR / riab

Risk in a Box - main project
Other
17 stars 6 forks source link

Broken test #114

Closed uniomni closed 13 years ago

uniomni commented 13 years ago

The test show below started to fail as of mid June 2011 and we don't understand why.

1) The lembang_mmi_hazmap keywords are correct category:hazard subcategory:earthquake

2) The activation code in the plugin looks OK (unless the layer type is not raster): :param requires category=="hazard" and \ subcategory.startswith("earthquake") and \ layer_type=="raster"

3) The test code looks fine too

FAIL: Verify the plugins can recognize compatible layers.

Traceback (most recent call last): File "/home/nielso/dev/riab/risiko/tests/test_plugins.py", line 185, in test_plugin_selection assert hazard_layer.typename in layers, hazard_msg AssertionError: Expected layer geonode:lembang_mmi_hazmap in list of compatible layers: ['geonode:lembang_schools', 'geonode:padang_wsg84', 'geonode:earthquake_ground_shaking', 'geonode:shakemap_padang_2009', 'geonode:shakemap_padang_20090930'] u"Expected layer geonode:lembang_mmi_hazmap in list of compatible layers: ['geonode:lembang_schools', 'geonode:padang_wsg84', 'geonode:earthquake_ground_shaking', 'geonode:shakemap_padang_2009', 'geonode:shakemap_padang_20090930']" = 'Expected layer %s in list of compatible layers: %s' % (.typename, ['geonode:lembang_schools', 'geonode:padang_wsg84', 'geonode:earthquake_ground_shaking', 'geonode:shakemap_padang_2009', 'geonode:shakemap_padang_20090930'])

assert .typename in ['geonode:lembang_schools', 'geonode:padang_wsg84', 'geonode:earthquake_ground_shaking', 'geonode:shakemap_padang_2009', 'geonode:shakemap_padang_20090930'], u"Expected layer geonode:lembang_mmi_hazmap in list of compatible layers: ['geonode:lembang_schools', 'geonode:padang_wsg84', 'geonode:earthquake_ground_shaking', 'geonode:shakemap_padang_2009', 'geonode:shakemap_padang_20090930']"

ingenieroariel commented 13 years ago

This was all related to the double upload with keywords. Fixed last week.