Skip to content

Instantly share code, notes, and snippets.

@mbernasocchi
Created November 4, 2013 13:17
Show Gist options
  • Save mbernasocchi/7302268 to your computer and use it in GitHub Desktop.
Save mbernasocchi/7302268 to your computer and use it in GitHub Desktop.
#345 test_qgis_translations (safe_qgis.test.test_translations.SafeTranslationsTest) ... QApplication::installTranslator: Please instantiate the QApplication object first
ERROR
======================================================================
ERROR: Failure: TypeError (unsupported operand type(s) for %: 'QString' and 'tuple')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/batch/test/test_batch_dialog.py", line 36, in <module>
DOCK = Dock(IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 144, in __init__
self.set_dock_title()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 204, in set_dock_title
version, version_type))
TypeError: unsupported operand type(s) for %: 'QString' and 'tuple'
======================================================================
ERROR: Failure: TypeError (unsupported operand type(s) for %: 'QString' and 'tuple')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/impact_statistics/test/test_aggregator.py", line 67, in <module>
DOCK = Dock(IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 144, in __init__
self.set_dock_title()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 204, in set_dock_title
version, version_type))
TypeError: unsupported operand type(s) for %: 'QString' and 'tuple'
======================================================================
ERROR: test_buildWidget (safe_qgis.impact_statistics.test.test_function_options_dialog.FunctionOptionsDialogTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/impact_statistics/test/test_function_options_dialog.py", line 125, in test_buildWidget
assert myValue() == [2.3]
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/impact_statistics/function_options_dialog.py", line 71, in <lambda>
return lambda: theType(theObject.property(theProperty))
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/impact_statistics/function_options_dialog.py", line 205, in <lambda>
function = lambda x: [value_type(y) for y in str(x).split(',')]
ValueError: could not convert string to float: <PyQt4.QtCore.QVariant object at 0x9462280>
======================================================================
ERROR: Failure: TypeError (unsupported operand type(s) for %: 'QString' and 'tuple')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/impact_statistics/test/test_postprocessor_manager.py", line 55, in <module>
DOCK = Dock(IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 144, in __init__
self.set_dock_title()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 204, in set_dock_title
version, version_type))
TypeError: unsupported operand type(s) for %: 'QString' and 'tuple'
======================================================================
ERROR: Test that setting user-defined logo works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map.py", line 120, in test_custom_logo
report.make_pdf(out_path)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/map.py", line 163, in make_pdf
self.load_template()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/map.py", line 223, in load_template
if system_locale.lower() not in template_basename.lower():
AttributeError: 'QString' object has no attribute 'lower'
-------------------- >> begin captured logging << --------------------
InaSAFE: INFO: Testing custom_logo
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map printToPdf called
InaSAFE: DEBUG: InaSAFE Map setupComposition called
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Test that loading default template works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map.py", line 84, in test_default_template
report.make_pdf(out_path)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/map.py", line 163, in make_pdf
self.load_template()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/map.py", line 223, in load_template
if system_locale.lower() not in template_basename.lower():
AttributeError: 'QString' object has no attribute 'lower'
-------------------- >> begin captured logging << --------------------
InaSAFE: INFO: Testing default_template
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map printToPdf called
InaSAFE: DEBUG: InaSAFE Map setupComposition called
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Test for filter the content of the table.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_function_browser.py", line 107, in testFilterTable
myDialog = FunctionBrowser(PARENT)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/function_browser.py", line 62, in __init__
self.tr('InaSAFE %s Impact Functions Browser') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test for showing table in the first.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_function_browser.py", line 101, in testInitShowTable
myDialog = FunctionBrowser(PARENT)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/function_browser.py", line 62, in __init__
self.tr('InaSAFE %s Impact Functions Browser') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Failure: ImportError (No module named impact_merge_dialog_base)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_impact_merge_dialog.py", line 31, in <module>
from safe_qgis.tools.impact_merge_dialog import ImpactMergeDialog
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/impact_merge_dialog.py", line 27, in <module>
from safe_qgis.ui.impact_merge_dialog_base import Ui_ImpactMergeDialogBase
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named impact_merge_dialog_base
======================================================================
ERROR: Test add keyword when ok button is pressed.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 549, in test_addKeywordWhenPressOkButton
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test add entry to list works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 418, in test_addListEntry
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test add entry to list works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 430, in test_addWarningsForColons
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test get value for key works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 514, in test_getValueForKey
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test load state from keywords works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 540, in test_layer_without_keywords
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test load state from keywords works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 523, in test_loadStateFromKeywords
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test subcategory combo change event works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 327, in test_on_cboSubcategory_currentIndexChanged
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test hazard radio button toggle behaviour works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 263, in test_on_dsbFemaleRatioDefault_valueChanged
myDialog = KeywordsDialog(PARENT, IFACE, layer=myLayer)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
-------------------- >> begin captured stdout << ---------------------
QGIS defaults CALL
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: Test adding an item to the list using predefined form works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 367, in test_on_pbnAddToList1_clicked
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test adding an item to the list using user defined form works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 382, in test_on_pbnAddToList2_clicked
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test advanced button toggle behaviour works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 197, in test_on_pbnAdvanced_toggled
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test pressing remove works on key list
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 398, in test_on_pbnRemove_clicked
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test hazard radio button toggle behaviour works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 221, in test_on_radHazard_toggled
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test hazard radio button toggle behaviour works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 233, in test_on_radPostprocessing_toggled
myDialog = KeywordsDialog(PARENT, IFACE, layer=myLayer)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
-------------------- >> begin captured stdout << ---------------------
QGIS defaults CALL
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: Test remove item by its key works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 484, in test_removeItemByKey
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test remove item by its value works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 498, in test_removeItemByValue
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test form reset works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 473, in test_reset
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test set category works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 461, in test_setCategory
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test set subcategory list works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_keywords_dialog.py", line 344, in test_setSubcategoryList
myDialog = KeywordsDialog(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/keywords_dialog.py", line 69, in __init__
'InaSAFE %s Keywords Editor') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test behaviour of the minimum needs function.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_minimum_needs.py", line 57, in test_minimum_needs
dialog = MinimumNeeds(PARENT)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/minimum_needs.py", line 54, in __init__
'InaSAFE %s Minimum Needs Tool') % (get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test download method.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_osm_downloader.py", line 149, in setUp
self.importDlg = OsmDownloader(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 78, in __init__
self.restore_state()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 129, in restore_state
self.outDir.setText(mySetting.value('directory'))
TypeError: QLineEdit.setText(QString): argument 1 has unexpected type 'QVariant'
======================================================================
ERROR: Test we can download a zip. Uses a mock network stack.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_osm_downloader.py", line 149, in setUp
self.importDlg = OsmDownloader(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 78, in __init__
self.restore_state()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 129, in restore_state
self.outDir.setText(mySetting.value('directory'))
TypeError: QLineEdit.setText(QString): argument 1 has unexpected type 'QVariant'
======================================================================
ERROR: Test extract_zip method.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_osm_downloader.py", line 149, in setUp
self.importDlg = OsmDownloader(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 78, in __init__
self.restore_state()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 129, in restore_state
self.outDir.setText(mySetting.value('directory'))
TypeError: QLineEdit.setText(QString): argument 1 has unexpected type 'QVariant'
======================================================================
ERROR: Test fetch zip method.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_osm_downloader.py", line 149, in setUp
self.importDlg = OsmDownloader(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 78, in __init__
self.restore_state()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 129, in restore_state
self.outDir.setText(mySetting.value('directory'))
TypeError: QLineEdit.setText(QString): argument 1 has unexpected type 'QVariant'
======================================================================
ERROR: Test loading shape file to QGIS Main Window
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_osm_downloader.py", line 149, in setUp
self.importDlg = OsmDownloader(PARENT, IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 78, in __init__
self.restore_state()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/osm_downloader.py", line 129, in restore_state
self.outDir.setText(mySetting.value('directory'))
TypeError: QLineEdit.setText(QString): argument 1 has unexpected type 'QVariant'
======================================================================
ERROR: Test behaviour of elements in the dialog
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_shakemap_importer.py", line 55, in test_behaviour
myDialog = ShakemapImporter(PARENT)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/shakemap_importer.py", line 58, in __init__
get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test converting a file.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_shakemap_importer.py", line 69, in test_converting
dialog = ShakemapImporter(PARENT)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/shakemap_importer.py", line 58, in __init__
get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Test for showing table in the first.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/test/test_shakemap_importer.py", line 40, in test_initDialog
myDialog = ShakemapImporter(PARENT)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/tools/shakemap_importer.py", line 58, in __init__
get_version()))
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
ERROR: Failure: TypeError (unsupported operand type(s) for %: 'QString' and 'tuple')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/test/test_dock.py", line 93, in <module>
DOCK = Dock(IFACE)
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 144, in __init__
self.set_dock_title()
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/widgets/dock.py", line 204, in set_dock_title
version, version_type))
TypeError: unsupported operand type(s) for %: 'QString' and 'tuple'
======================================================================
ERROR: test_qgis_translations (safe_qgis.test.test_translations.SafeTranslationsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/test/test_translations.py", line 154, in test_qgis_translations
"@default", 'No styleInfo was found for layer %s') % 'myLayer'
TypeError: unsupported operand type(s) for %: 'QString' and 'str'
======================================================================
FAIL: Test that we can render html from impact table keywords.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_html_renderer.py", line 139, in test_printImpactTable
self.assertIn(mySize, myExpectedSizes)
AssertionError: 14220 not found in [20936, 21523, 20605, 21527, 377191, 252699L, 251782L, 21491]
-------------------- >> begin captured stdout << ---------------------
Output pdf to /tmp/inasafe/2013-11-04/marco/test/impactTablekXSTPX.pdf
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE HtmlRenderer testing printImpactTable
InaSAFE: DEBUG: InaSAFE HtmlRenderer class initialised
InaSAFE: INFO: InaSAFE Map printToPdf called
InaSAFE: DEBUG: InaSAFE Map setupPrinter called
InaSAFE: DEBUG: htmlLoadedSlot slot called
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test that we can render some html to a pdf (most common use case).
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_html_renderer.py", line 104, in test_printToPdf
assert mySize >= myExpectedSize, myMessage
AssertionError: Expected rendered map pdf to be at least 18449, got 16600. Please update myExpectedSize if the rendered output is acceptible on your system.
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE HtmlRenderer testing printToPdf
InaSAFE: DEBUG: InaSAFE HtmlRenderer class initialised
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/testHtmlTablenx2Dgu.pdf
InaSAFE: INFO: InaSAFE Map printToPdf called
InaSAFE: DEBUG: InaSAFE Map setupPrinter called
InaSAFE: DEBUG: htmlLoadedSlot slot called
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test that we can render html to a pixmap.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_html_renderer.py", line 164, in test_renderHtmlToImage
assert myFlag, myMessage + '\n' + myPath
AssertionError: Checking for platform specific variant...
/tmp/inasafe/2013-11-04/marco/test/testHtmlToImageCbuQ1N.png
/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/renderHtmlToImage-variantUbuntu-13.04-x86_64.png
10272 of 2408832 pixels are mismatched. Tolerance is 1000.
Control image : /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/renderHtmlToImage-variantUbuntu-13.04-x86_64.png
Test image : /tmp/inasafe/2013-11-04/marco/test/testHtmlToImageCbuQ1N.png
Difference image: /tmp/inasafe/2013-11-04/marco/test/difference-renderHtmlToImage-variantUbuntu-13.04-x86_64.pngM_d7_Z.png
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.
/tmp/inasafe/2013-11-04/marco/test/testHtmlToImageCbuQ1N.png
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE HtmlRenderer testing renderHtmlToImage
InaSAFE: DEBUG: <table class="table table-striped condensed bordered-table"><thead><tr><th>Wilayah</th><th>Jumlah Penduduk</th><th>Jumlah Penduduk yang Mungkin</th><th>Wilayah</th><th>Jumlah Penduduk</th><th>Jumlah Penduduk yang Mungkin</th></tr></thead><tr><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td></tr><tr><td>3</td><td>3</td><td>3</td><td>3</td><td>3</td><td>3</td></tr><tr><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td></tr><tr><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td></tr><tr><td>6</td><td>6</td><td>6</td><td>6</td><td>6</td><td>6</td></tr><tr><td>7</td><td>7</td><td>7</td><td>7</td><td>7</td><td>7</td></tr><tr><td>8</td><td>8</td><td>8</td><td>8</td><td>8</td><td>8</td></tr><tr><td>9</td><td>9</td><td>9</td><td>9</td><td>9</td><td>9</td></tr><tr><td>10</td><td>10</td><td>10</td><td>10</td><td>10</td><td>10</td></tr><tr><td>11</td><td>11</td><td>11</td><td>11</td><td>11</td><td>11</td></tr><tr><td>12</td><td>12</td><td>12</td><td>12</td><td>12</td><td>12</td></tr><tr><td>13</td><td>13</td><td>13</td><td>13</td><td>13</td><td>13</td></tr><tr><td>14</td><td>14</td><td>14</td><td>14</td><td>14</td><td>14</td></tr><tr><td>15</td><td>15</td><td>15</td><td>15</td><td>15</td><td>15</td></tr><tr><td>16</td><td>16</td><td>16</td><td>16</td><td>16</td><td>16</td></tr><tr><td>17</td><td>17</td><td>17</td><td>17</td><td>17</td><td>17</td></tr><tr><td>18</td><td>18</td><td>18</td><td>18</td><td>18</td><td>18</td></tr><tr><td>19</td><td>19</td><td>19</td><td>19</td><td>19</td><td>19</td></tr><tr><td>20</td><td>20</td><td>20</td><td>20</td><td>20</td><td>20</td></tr></table>
InaSAFE: DEBUG: InaSAFE HtmlRenderer class initialised
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/testHtmlToImageCbuQ1N.png
InaSAFE: DEBUG: InaSAFE Map renderHtmlToImage called
InaSAFE: DEBUG: htmlLoadedSlot slot called
InaSAFE: DEBUG: <class 'PyQt4.QtGui.QImage'>
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-11-04/marco/test/difference-renderHtmlToImage-variantUbuntu-13.04-x86_64.pngM_d7_Z.png
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test we can add a class to the map legend.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map_legend.py", line 183, in test_addClassToLegend
assert myFlag, myMessage
AssertionError: Checking for platform specific variant...
/tmp/inasafe/2013-11-04/marco/test/addClassToLegendVH4tc2.png
/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/addClassToLegend-variantUbuntu-13.04-x86_64.png
16932 of 161100 pixels are mismatched. Tolerance is 0.
Control image : /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/addClassToLegend-variantUbuntu-13.04-x86_64.png
Test image : /tmp/inasafe/2013-11-04/marco/test/addClassToLegendVH4tc2.png
Difference image: /tmp/inasafe/2013-11-04/marco/test/difference-addClassToLegend-variantUbuntu-13.04-x86_64.pngyPseAd.png
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.
We want these images to match, if they do already copy the test image generated to create a new control image.
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: labelbar
InaSAFE: DEBUG: minimum None
InaSAFE: DEBUG: maximum None
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: labelfoo
InaSAFE: DEBUG: minimum None
InaSAFE: DEBUG: maximum None
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend getLegend called
InaSAFE: DEBUG: InaSAFE Map getVectorLegend called
InaSAFE: DEBUG: myTypegraduatedSymbol
InaSAFE: DEBUG: graduatedSymbol
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[0.0 - 1.5] Low damage
InaSAFE: DEBUG: minimum 0.0
InaSAFE: DEBUG: maximum 1.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[1.5 - 2.5] Medium damage
InaSAFE: DEBUG: minimum 1.5
InaSAFE: DEBUG: maximum 2.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[2.5 - 3.5] High damage
InaSAFE: DEBUG: minimum 2.5
InaSAFE: DEBUG: maximum 3.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addLegendNotes called
InaSAFE: DEBUG: No notes
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/addClassToLegendVH4tc2.png
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-11-04/marco/test/difference-addClassToLegend-variantUbuntu-13.04-x86_64.pngyPseAd.png
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test we can add a symbol to the legend.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map_legend.py", line 154, in test_addSymbolToLegend
assert myFlag, myMessage
AssertionError: Checking for platform specific variant...
/tmp/inasafe/2013-11-04/marco/test/addSymbolToLegendPDJ513.png
/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/addSymbolToLegend-variantUbuntu-13.04-x86_64.png
20377 of 387900 pixels are mismatched. Tolerance is 0.
Control image : /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/addSymbolToLegend-variantUbuntu-13.04-x86_64.png
Test image : /tmp/inasafe/2013-11-04/marco/test/addSymbolToLegendPDJ513.png
Difference image: /tmp/inasafe/2013-11-04/marco/test/difference-addSymbolToLegend-variantUbuntu-13.04-x86_64.pngvEUHbP.png
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.
We want these images to match, if they do already, copy the test image generated to create a new control image.
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: labelFoo
InaSAFE: DEBUG: minimum 0
InaSAFE: DEBUG: maximum 2.0203
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend getLegend called
InaSAFE: DEBUG: InaSAFE Map Legend getRasterLegend called
InaSAFE: DEBUG: Source: /home/marco/dev/qgis-plugins/inasafe/inasafe_data/test/test_floodimpact.tif
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[0 - 2] Low
InaSAFE: DEBUG: minimum 0
InaSAFE: DEBUG: maximum 2.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[2 - 5]
InaSAFE: DEBUG: minimum 2.0
InaSAFE: DEBUG: maximum 5.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[5 - 10]
InaSAFE: DEBUG: minimum 5.0
InaSAFE: DEBUG: maximum 10.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[10 - 20]
InaSAFE: DEBUG: minimum 10.0
InaSAFE: DEBUG: maximum 20.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[20 - 50] Medium
InaSAFE: DEBUG: minimum 20.0
InaSAFE: DEBUG: maximum 50.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[50 - 100]
InaSAFE: DEBUG: minimum 50.0
InaSAFE: DEBUG: maximum 100.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[100 - 200]
InaSAFE: DEBUG: minimum 100.0
InaSAFE: DEBUG: maximum 200.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[200 - 300] High
InaSAFE: DEBUG: minimum 200.0
InaSAFE: DEBUG: maximum 300.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addLegendNotes called
InaSAFE: DEBUG: No notes
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/addSymbolToLegendPDJ513.png
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-11-04/marco/test/difference-addSymbolToLegend-variantUbuntu-13.04-x86_64.pngvEUHbP.png
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Getting a legend for a generic layer works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map_legend.py", line 71, in test_getLegend
assert myFlag, myMessage
AssertionError: Checking for platform specific variant...
/tmp/inasafe/2013-11-04/marco/test/getLegendNXN5ZW.png
/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/getLegend-variantUbuntu-13.04-x86_64.png
16932 of 161100 pixels are mismatched. Tolerance is 0.
Control image : /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/getLegend-variantUbuntu-13.04-x86_64.png
Test image : /tmp/inasafe/2013-11-04/marco/test/getLegendNXN5ZW.png
Difference image: /tmp/inasafe/2013-11-04/marco/test/difference-getLegend-variantUbuntu-13.04-x86_64.png05Yj02.png
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.
We want these images to match, if they do already copy the test image generated to create a new control image.
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: test_getLegend called
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map Legend getLegend called
InaSAFE: DEBUG: InaSAFE Map getVectorLegend called
InaSAFE: DEBUG: myTypegraduatedSymbol
InaSAFE: DEBUG: graduatedSymbol
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[0.0 - 1.5] Low damage
InaSAFE: DEBUG: minimum 0.0
InaSAFE: DEBUG: maximum 1.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[1.5 - 2.5] Medium damage
InaSAFE: DEBUG: minimum 1.5
InaSAFE: DEBUG: maximum 2.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[2.5 - 3.5] High damage
InaSAFE: DEBUG: minimum 2.5
InaSAFE: DEBUG: maximum 3.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addLegendNotes called
InaSAFE: DEBUG: No notes
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/getLegendNXN5ZW.png
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-11-04/marco/test/difference-getLegend-variantUbuntu-13.04-x86_64.png05Yj02.png
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Getting a legend for a raster layer works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map_legend.py", line 124, in test_getRasterLegend
assert myFlag, myMessage
AssertionError: Checking for platform specific variant...
/tmp/inasafe/2013-11-04/marco/test/getRasterLegendPUvf7U.png
/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/getRasterLegend-variantUbuntu-13.04-x86_64.png
19947 of 350100 pixels are mismatched. Tolerance is 0.
Control image : /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/getRasterLegend-variantUbuntu-13.04-x86_64.png
Test image : /tmp/inasafe/2013-11-04/marco/test/getRasterLegendPUvf7U.png
Difference image: /tmp/inasafe/2013-11-04/marco/test/difference-getRasterLegend-variantUbuntu-13.04-x86_64.png0mUdmt.png
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.
We want these images to match, if they do already copy the test image generated to create a new control image.
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map Legend getRasterLegend called
InaSAFE: DEBUG: Source: /home/marco/dev/qgis-plugins/inasafe/inasafe_data/test/test_floodimpact.tif
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[0 - 2] Low
InaSAFE: DEBUG: minimum 0
InaSAFE: DEBUG: maximum 2.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[2 - 5]
InaSAFE: DEBUG: minimum 2.0
InaSAFE: DEBUG: maximum 5.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[5 - 10]
InaSAFE: DEBUG: minimum 5.0
InaSAFE: DEBUG: maximum 10.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[10 - 20]
InaSAFE: DEBUG: minimum 10.0
InaSAFE: DEBUG: maximum 20.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[20 - 50] Medium
InaSAFE: DEBUG: minimum 20.0
InaSAFE: DEBUG: maximum 50.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[50 - 100]
InaSAFE: DEBUG: minimum 50.0
InaSAFE: DEBUG: maximum 100.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[100 - 200]
InaSAFE: DEBUG: minimum 100.0
InaSAFE: DEBUG: maximum 200.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[200 - 300] High
InaSAFE: DEBUG: minimum 200.0
InaSAFE: DEBUG: maximum 300.0
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addLegendNotes called
InaSAFE: DEBUG: No notes
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/getRasterLegendPUvf7U.png
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-11-04/marco/test/difference-getRasterLegend-variantUbuntu-13.04-x86_64.png0mUdmt.png
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Getting a legend for a vector layer works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/report/test/test_map_legend.py", line 101, in test_getVectorLegend
assert myFlag, myMessage
AssertionError: Checking for platform specific variant...
/tmp/inasafe/2013-11-04/marco/test/getVectorLegendAEyXQZ.png
/home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/getVectorLegend-variantUbuntu-13.04-x86_64.png
19596 of 198900 pixels are mismatched. Tolerance is 0.
Control image : /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe_qgis/utilities/../test/test_data/test_images/getVectorLegend-variantUbuntu-13.04-x86_64.png
Test image : /tmp/inasafe/2013-11-04/marco/test/getVectorLegendAEyXQZ.png
Difference image: /tmp/inasafe/2013-11-04/marco/test/difference-getVectorLegend-variantUbuntu-13.04-x86_64.pngCVlDW8.png
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.
We want these images to match, if they do already copy the test image generated to create a new control image.
-------------------- >> begin captured logging << --------------------
InaSAFE: DEBUG: InaSAFE Map class initialised
InaSAFE: DEBUG: InaSAFE Map getVectorLegend called
InaSAFE: DEBUG: myTypegraduatedSymbol
InaSAFE: DEBUG: graduatedSymbol
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[0.0 - 1.5] Low damage
InaSAFE: DEBUG: minimum 0.0
InaSAFE: DEBUG: maximum 1.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[1.5 - 2.5] Medium damage
InaSAFE: DEBUG: minimum 1.5
InaSAFE: DEBUG: maximum 2.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addSymbolToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend addClassToLegend called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: label[2.5 - 3.5] High damage
InaSAFE: DEBUG: minimum 2.5
InaSAFE: DEBUG: maximum 3.5
InaSAFE: DEBUG: category None
InaSAFE: DEBUG: InaSAFE Map Legend addLegendNotes called
InaSAFE: DEBUG: InaSAFE Map Legend extendLegend called
InaSAFE: DEBUG: /tmp/inasafe/2013-11-04/marco/test/getVectorLegendAEyXQZ.png
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-11-04/marco/test/difference-getVectorLegend-variantUbuntu-13.04-x86_64.pngCVlDW8.png
--------------------- >> end captured logging << ---------------------
Name Stmts Miss Cover Missing
-----------------------------------------------------------------------------------------------------------
safe 3 0 100%
safe.api 30 2 93% 91-92
safe.common 0 0 100%
safe.common.converter 200 24 88% 126, 130, 268-270, 284, 333, 368, 402, 423-436, 491, 495, 505, 540, 565, 606-607
safe.common.exceptions 39 0 100%
safe.common.geodesy 85 9 89% 70-71, 74-75, 130, 142-145
safe.common.interpolation 74 18 76% 48-52, 54-59, 61-65, 104-108, 111-113, 118-119, 124-127, 136-140
safe.common.interpolation1d 38 2 95% 81, 118
safe.common.interpolation2d 70 3 96% 105-109, 163
safe.common.numerics 77 1 99% 81
safe.common.polygon 520 54 90% 108, 112, 117, 123-124, 129, 134, 138, 332, 348-352, 419, 421, 423, 510, 644, 649-652, 657, 661-664, 668, 672, 797, 801-804, 808, 812, 816-819, 823, 827, 838-841, 1320-1321, 1367-1370, 1374, 1379-1382, 1432-1435
safe.common.signals 7 0 100%
safe.common.tables 269 86 68% 153, 155, 160, 162, 164-165, 169, 226, 228, 231, 233, 239, 247, 249, 326, 345, 347, 349, 351, 360, 362, 364, 366, 368, 395, 444, 464-473, 477-490, 499, 504, 509, 515-577
safe.common.utilities 223 73 67% 35-36, 104, 118-121, 161-165, 173-174, 193-215, 223-231, 239-241, 249-256, 264-276, 313-314, 319, 375, 383, 412, 422, 432, 435-436, 478-479, 507-513
safe.common.version 48 11 77% 27-29, 32-34, 48, 54-55, 58-59, 78-79
safe.defaults 22 1 95% 62
safe.engine 0 0 100%
safe.engine.core 94 3 97% 88, 128, 186
safe.engine.interpolation 207 36 83% 132-138, 150, 162-164, 203, 207, 211, 272-274, 305, 324-326, 609-616, 636-669
safe.engine.utilities 1 0 100%
safe.impact_functions 18 2 89% 16-19
safe.impact_functions.core 366 83 77% 128, 188-191, 212-213, 295-301, 312, 317, 322, 356, 410, 433, 469-476, 506, 511, 537-542, 569-578, 660, 736-748, 755-756, 787-816, 840, 872, 874, 876, 878, 880, 882, 884, 886, 893, 901-907
safe.impact_functions.earthquake 6 0 100%
safe.impact_functions.earthquake.earthquake_building_impact 102 30 71% 78, 106-125, 129-130, 132-133, 137-142, 148-149, 153-155, 159, 192
safe.impact_functions.earthquake.itb_building_impact_model 88 2 98% 102, 105
safe.impact_functions.earthquake.itb_earthquake_fatality_model 107 8 93% 238-241, 270, 290, 362-367
safe.impact_functions.earthquake.pager_earthquake_fatality_model 23 0 100%
safe.impact_functions.generic 6 0 100%
safe.impact_functions.generic.categorised_hazard_population 54 34 37% 79-165
safe.impact_functions.inundation 6 1 83% 9
safe.impact_functions.inundation.flood_OSM_building_impact 148 51 66% 94-95, 114-158, 162, 164, 168, 171, 173, 175, 177, 179-181, 184, 233-254, 270, 275, 285
safe.impact_functions.inundation.flood_population_evacuation 89 69 22% 112-281
safe.impact_functions.inundation.flood_population_evacuation_polygon_hazard 120 93 23% 127-336
safe.impact_functions.inundation.flood_road_impact_experimental 41 30 27% 32-109
safe.impact_functions.mappings 143 61 57% 99, 102-111, 118-124, 151-204, 270, 273-282, 348-384
safe.impact_functions.styles 5 0 100%
safe.impact_functions.tephra 6 1 83% 9
safe.impact_functions.utilities 49 8 84% 17-19, 77-80, 102
safe.impact_functions.volcanic 6 0 100%
safe.impact_functions.volcanic.volcano_building_impact 108 91 16% 74-255
safe.impact_functions.volcanic.volcano_population_evacuation_polygon_hazard 124 19 85% 116-118, 124, 128-140, 166, 169-172, 214, 285-291
safe.messaging 22 0 100%
safe.messaging.error_message 95 14 85% 109, 115, 123-144, 173-174, 232-235
safe.messaging.example 1 0 100%
safe.messaging.item 4 0 100%
safe.messaging.item.abstract_list 23 3 87% 75, 89, 103
safe.messaging.item.bulleted_list 23 2 91% 64, 85
safe.messaging.item.cell 14 1 93% 77
safe.messaging.item.emphasized_text 13 0 100%
safe.messaging.item.exceptions 6 0 100%
safe.messaging.item.heading 32 5 84% 61-64, 79, 104
safe.messaging.item.image 18 0 100%
safe.messaging.item.important_text 13 0 100%
safe.messaging.item.line_break 11 0 100%
safe.messaging.item.link 19 2 89% 64, 81
safe.messaging.item.message_element 42 4 90% 79, 93, 107, 121
safe.messaging.item.numbered_list 23 2 91% 63, 84
safe.messaging.item.paragraph 18 2 89% 64, 82
safe.messaging.item.row 34 6 82% 76, 109-114
safe.messaging.item.success_paragraph 20 4 80% 46-47, 64, 81
safe.messaging.item.table 31 2 94% 70, 106
safe.messaging.item.text 48 4 92% 76, 91, 111, 167
safe.messaging.message 56 5 91% 76-79, 93, 159
safe.messaging.styles 13 0 100%
safe.postprocessors 9 0 100%
safe.postprocessors.abstract_postprocessor 47 23 51% 50, 65, 80-83, 98-99, 114, 126, 138-140, 152, 170-179
safe.postprocessors.age_postprocessor 86 66 23% 32-33, 47, 60-76, 89-99, 112-113, 127-139, 154-166, 181-193, 208-220
safe.postprocessors.aggregation_categorical_postprocessor 46 30 35% 31-34, 48, 61-70, 83-92, 105-108, 123-135
safe.postprocessors.aggregation_postprocessor 42 26 38% 32-33, 47, 60-68, 81-84, 97-98, 113-127
safe.postprocessors.building_type_postprocessor 81 64 21% 32-38, 54, 67-94, 109-121, 134-138, 153-162, 181-202
safe.postprocessors.gender_postprocessor 82 63 23% 27-29, 43, 56-60, 73-83, 96-98, 112-124, 139-151, 167-182, 200-219
safe.postprocessors.minimum_needs_postprocessor 41 25 39% 32-34, 48, 57-65, 78-85, 98-100, 115-121
safe.postprocessors.postprocessor_factory 37 16 57% 74-97
safe.storage 0 0 100%
safe.storage.clipping 4 0 100%
safe.storage.core 79 4 95% 114-116, 185
safe.storage.geometry 12 3 75% 9, 28-30
safe.storage.layer 58 4 93% 98, 103-105
safe.storage.projection 61 0 100%
safe.storage.raster 227 18 92% 144, 148, 158, 223-227, 232-233, 268-270, 328, 472, 475, 574-577, 596, 600-601
safe.storage.utilities 358 32 91% 115-116, 196, 299-300, 363-364, 522-523, 631, 635-636, 697-698, 705-706, 713-714, 734, 738-739, 764-768, 821, 845-849, 864-865, 914, 1100
safe.storage.vector 415 50 88% 276, 280, 284, 295, 300, 306, 315, 320-326, 333-334, 339, 344, 434-435, 440-447, 471-472, 486-495, 502-507, 571-574, 600-601, 605-606, 612-613, 622-627, 661-662, 696-697, 703-704, 736-737, 753, 834-835, 887-889
safe_qgis 19 7 63% 12, 27-40
safe_qgis.batch 1 0 100%
safe_qgis.batch.batch_dialog 335 285 15% 70-122, 127-142, 147-153, 159, 172-177, 187-218, 234-249, 258-327, 332-334, 340-379, 400-422, 433-439, 460-515, 536-545, 577-593, 607-619, 624-625, 629, 633, 638-643, 653-655, 661-662, 668-669, 696-725, 740-755
safe_qgis.batch.scenario_runner 74 53 28% 37, 47-61, 70-74, 94-120, 134-142, 159-174
safe_qgis.exceptions 67 0 100%
safe_qgis.impact_statistics 1 0 100%
safe_qgis.impact_statistics.aggregator 549 503 8% 98-139, 159-215, 232-257, 276-393, 411-671, 679-769, 776-819, 823, 827, 831, 835, 839, 844-857, 880-1165, 1177-1194, 1215-1257, 1274-1278
safe_qgis.impact_statistics.function_options_dialog 122 32 74% 34-35, 85, 98-114, 163, 197, 207-209, 225-229, 251, 261-266, 274
safe_qgis.impact_statistics.postprocessor_manager 183 161 12% 54-63, 66, 81-93, 108-181, 186-245, 250-362, 372-388
safe_qgis.impact_statistics.zonal_stats 211 54 74% 55, 95, 99, 117, 133-136, 146-149, 168, 171, 198, 325-369, 457, 460, 501, 521-522, 540-542, 558-581, 624
safe_qgis.plugin 216 179 17% 41-49, 76-85, 100-137, 153, 167-170, 183-373, 380-412, 423-432, 444, 449-453, 458-461, 466-469, 474-480, 485-493, 498-501, 506-509, 513-516, 520-526, 530, 534, 541-544, 548
safe_qgis.report 1 0 100%
safe_qgis.report.html_renderer 109 17 84% 127, 156-158, 182, 217, 221-222, 228-229, 241, 247-252
safe_qgis.report.map 162 98 40% 71, 95, 116-142, 157, 165-171, 185-186, 194-209, 224-317
safe_qgis.report.map_legend 176 35 80% 70, 96-98, 101-107, 130-132, 137-141, 157-163, 310-334
safe_qgis.resources 1 0 100%
safe_qgis.safe_interface 124 36 71% 87-88, 132-133, 226-229, 264-265, 287, 296-299, 331-333, 339-340, 346-350, 363-364, 386-387, 407, 417-421, 424-427, 450-451, 467-468, 485-486
safe_qgis.tools 0 0 100%
safe_qgis.tools.function_browser 82 60 27% 63-94, 99-102, 106-110, 114-125, 130-147, 154-162, 166, 178-179
safe_qgis.tools.keywords_dialog 415 357 14% 70-123, 131-132, 136, 141-147, 156-174, 183-209, 218-229, 238-239, 250-263, 272-275, 291, 299-304, 314-317, 327-330, 340-346, 359-385, 404-421, 428-434, 442-460, 469-473, 494-520, 532-574, 584-595, 603-613, 621-629, 640-648, 657-681, 685-729, 734-736, 748, 757-768, 775-790, 798-801, 810-825
safe_qgis.tools.minimum_needs 103 71 31% 55-58, 63-96, 112-155, 161-172, 181-188, 196-222, 226
safe_qgis.tools.osm_downloader 137 67 51% 77, 79, 133-134, 138, 143-147, 153, 159-177, 189-206, 215-240, 254-270, 285-296, 305-314
safe_qgis.tools.shakemap_importer 135 98 27% 60-77, 81, 85-117, 122-128, 134-145, 149-167, 172-183, 188-226, 233-236, 243-246
safe_qgis.ui 1 0 100%
safe_qgis.ui.batch_dialog_base 87 78 10% 14-16, 21-24, 28-87, 90-101
safe_qgis.ui.dock_base 176 6 97% 14-16, 22-24
safe_qgis.ui.function_browser_base 160 6 96% 14-16, 22-24
safe_qgis.ui.function_options_dialog_base 62 6 90% 14-16, 22-24
safe_qgis.ui.keywords_dialog_base 249 2 99% 14-15
safe_qgis.ui.minimum_needs_base 52 6 88% 14-16, 22-24
safe_qgis.ui.osm_downloader_base 90 6 93% 14-16, 22-24
safe_qgis.ui.resources_rc 9 1 89% 15570
safe_qgis.ui.shakemap_importer_base 108 2 98% 14-15
safe_qgis.utilities 1 0 100%
safe_qgis.utilities.clipper 191 39 80% 126, 128, 183-184, 187-189, 215-220, 230-232, 254-257, 274, 283, 289, 296-304, 354-356, 386, 432-433, 436-439, 489, 518-523, 525-529, 598-611
safe_qgis.utilities.custom_logging 88 14 84% 64-70, 89, 151, 175, 182, 222, 236-239
safe_qgis.utilities.defaults 20 3 85% 59-62
safe_qgis.utilities.help 53 24 55% 39-42, 67, 75, 82-85, 104-124
safe_qgis.utilities.impact_calculator 53 6 89% 130-131, 134-135, 141-142
safe_qgis.utilities.impact_calculator_thread 55 17 69% 72, 122, 126, 162-165, 170-189
safe_qgis.utilities.keyword_io 225 59 74% 99-100, 136-137, 144, 146-147, 161-162, 166-169, 219-223, 233, 254-260, 309-312, 316-318, 341-342, 365-367, 389-390, 444-450, 500-506, 541-542, 559, 563, 582-593
safe_qgis.utilities.memory_checker 75 55 27% 48, 57, 85-174
safe_qgis.utilities.proxy 34 27 21% 25-57
safe_qgis.utilities.styling 190 68 64% 90, 92, 103-104, 120-123, 181-240, 331, 385-386, 390-391, 395-396, 471-488
safe_qgis.utilities.utilities 302 136 55% 99, 135-161, 173, 189, 260-295, 405, 431, 485, 506-514, 530-531, 543-547, 561-562, 600-602, 607, 614-616, 636-647, 663-688, 711-762, 779-789, 803-828
safe_qgis.widgets 1 0 100%
safe_qgis.widgets.dock 870 752 14% 147-190, 200-201, 233-235, 247, 262, 276-280, 288-323, 331-337, 345-350, 358-396, 405-412, 422-447, 469-482, 494-497, 509-512, 523-534, 542-552, 557-562, 571-574, 579-585, 595-596, 600-602, 606-609, 630-729, 735-784, 796-802, 820-826, 840-847, 852-865, 869-894, 905-1008, 1016-1019, 1025-1034, 1038-1043, 1048-1124, 1140-1145, 1151-1171, 1185-1256, 1261, 1266-1278, 1285-1349, 1354-1359, 1364, 1369, 1393-1514, 1544-1587, 1599-1616, 1626-1649, 1656-1674, 1688-1715, 1723-1729, 1733-1751, 1761-1765, 1769-1847, 1862-1866, 1884-1897, 1908-1993
safe_qgis.widgets.message_viewer 89 31 65% 66-92, 107-115, 129-130, 170-173, 179, 200, 212-213, 217
-----------------------------------------------------------------------------------------------------------
TOTAL 12350 4843 61%
----------------------------------------------------------------------
Ran 345 tests in 758.823s
FAILED (SKIP=3, errors=39, failures=8)
-----------
PEP8 issues
-----------
-----------------
Pylint violations
-----------------
safe_qgis/impact_statistics/test/test_postprocessor_manager.py:22: [W0611] Unused import qgis
safe_qgis/impact_statistics/test/test_function_options_dialog.py:19: [W0611] Unused import qgis
safe_qgis/impact_statistics/test/test_aggregator.py:22: [W0611] Unused import qgis
safe_qgis/impact_statistics/test/test_zonal_stats.py:20: [W0611] Unused import qgis
safe_qgis/tools/impact_merge_dialog.py:27: [E0611] No name 'impact_merge_dialog_base' in module 'safe_qgis.ui'
safe_qgis/tools/impact_merge_dialog.py:27: [F0401] Unable to import 'safe_qgis.ui.impact_merge_dialog_base'
safe_qgis/tools/test/test_impact_merge_dialog.py:20: [W0611] Unused import qgis
safe_qgis/tools/test/test_keywords_dialog.py:20: [W0611] Unused import qgis
safe_qgis/tools/test/test_shakemap_importer.py:20: [W0611] Unused import qgis
safe_qgis/tools/test/test_function_browser.py:20: [W0611] Unused import qgis
safe_qgis/tools/test/test_minimum_needs.py:22: [W0611] Unused import qgis
safe_qgis/tools/test/test_osm_downloader.py:19: [W0611] Unused import qgis
safe_qgis/widgets/test/test_message_viewer.py:22: [W0611] Unused import qgis
safe_qgis/widgets/test/test_dock.py:21: [W0611] Unused import qgis
safe_qgis/test/test_translations.py:20: [W0611] Unused import qgis
safe_qgis/test/test_plugin.py:21: [W0611] Unused import qgis
safe_qgis/test/test_safe_interface.py:23: [W0611] Unused import qgis
safe_qgis/test/test_qgis_environment.py:22: [W0611] Unused import qgis
safe_qgis/test/test_init.py:15: [W0611] Unused import qgis
safe_qgis/utilities/test/test_utilities.py:2: [W0611] Unused import qgis
safe_qgis/utilities/test/test_impact_calculator.py:28: [W0611] Unused import qgis
safe_qgis/utilities/test/test_help.py:20: [W0611] Unused import qgis
safe_qgis/utilities/test/test_styling.py:19: [W0611] Unused import qgis
safe_qgis/utilities/test/test_keyword_io.py:2: [W0611] Unused import qgis
safe_qgis/utilities/test/test_clipper.py:21: [W0611] Unused import qgis
safe_qgis/batch/test/test_batch_dialog.py:21: [W0611] Unused import qgis
safe_qgis/report/test/test_map.py:13: [W0611] Unused import qgis
safe_qgis/report/test/test_map_legend.py:19: [W0611] Unused import qgis
safe_qgis/report/test/test_html_renderer.py:20: [W0611] Unused import qgis
------------------------------------------------
List of unwanted dependencies in InaSAFE library
------------------------------------------------
------------------------------
Strings that should be deleted
------------------------------
-----------------------------------
Audit of IP status for bundled data
-----------------------------------
.............................................................................................
Files without licensing info in dir: /home/marco/dev/qgis-plugins/inasafe/inasafe_data/hazard
.............................................................................................
manokwari_earthquake_scenario.tif (Checksum = 1889808562): LICENSE FILE NOT VALID
REASON: Bad checksum (CRC).
The CRC reported in license file "/home/marco/dev/qgis-plugins/inasafe/inasafe_data/hazard/manokwari_earthquake_scenario.lic" is "1891293074"
The CRC computed from file "/home/marco/dev/qgis-plugins/inasafe/inasafe_data/hazard/manokwari_earthquake_scenario.tif" is "1889808562"
...........................................................................................
Files without licensing info in dir: /home/marco/dev/qgis-plugins/inasafe/inasafe_data/test
...........................................................................................
postProcessorBuildings.dbf (Checksum = 513998332): NO LICENSE FILE
postProcessorBuildings.shx (Checksum = 2110157619): NO LICENSE FILE
postProcessorBuildings.README (Checksum = 609955765): NO LICENSE FILE
postProcessorBuildings.shp (Checksum = 3902127708): NO LICENSE FILE
..............................................................................................................
Files without licensing info in dir: /home/marco/dev/qgis-plugins/inasafe/inasafe-master/safe/test/data/impact
..............................................................................................................
impact_merge_1.dbf (Checksum = 1964222721): NO LICENSE FILE
impact_merge_1.shx (Checksum = 1953149248): NO LICENSE FILE
impact_merge_1.shp (Checksum = 3438981788): NO LICENSE FILE
---------------------
Inasafe_data problems
---------------------
----------------------------------------------------------------
Missing translations - for more info run: make translation-stats
----------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment