Module: test_is_dock

This page contains the documentation for the InaSAFE test_is_dock unit tests.

InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - GUI Test Cases.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class gui.test_is_dock.ISDockTest(methodName='runTest')[source]

Test the InaSAFE GUI

setUp()[source]

Fixture run before all tests

tearDown()[source]

Fixture run after each test

test_Issue47()[source]

Issue47: Problem when hazard & exposure data are in different proj to viewport. See https://github.com/AIFDR/inasafe/issues/47

test_Issue71()[source]

Test issue #71 in github - cbo changes should update ok button.

test_Issue95()[source]

Test issue #95 in github -check crs of impact layer.

test_ResultStyling()[source]

Test that ouputs from a model are correctly styled (colours and opacity.

test_defaults()[source]

Test the GUI in its default state

test_issue45()[source]

Points near the edge of a raster hazard layer are interpolated OK

test_issue_160()

Test that multipart features can be used in a scenario - issue #160

test_layerChanged()[source]

Test the metadata is updated as the user highlights different QGIS layers. For inasafe outputs, the table of results should be shown See also https://github.com/AIFDR/inasafe/issues/58

test_loadLayers()[source]

Layers can be loaded and list widget was updated appropriately

test_runEarthQuakeGuidelinesFunction()[source]

GUI runs with Shakemap 2009 and Padang Buildings

test_runEarthquakeFatalityFunction_Padang_full()[source]

Padang 2009 fatalities estimated correctly (large extent)

test_runEarthquakeFatalityFunction_small()[source]

Padang 2009 fatalities estimated correctly (small extent)

test_runFloodPopulationImpactFunction()[source]

Flood function runs in GUI with Jakarta data Raster on raster based function runs as expected.

test_runFloodPopulationImpactFunction_scaling()[source]

Flood function runs in GUI with 5x5km population data Raster on raster based function runs as expected with scaling.

test_runTsunamiBuildingImpactFunction()[source]

Tsunami function runs in GUI with Batemans Bay model

test_setOkButtonStatus()[source]

OK button changes properly according to DOCK validity

test_state()[source]

Check if the save/restore state methods work. See also https://github.com/AIFDR/inasafe/issues/58

test_validate()[source]

Validate function work as expected

gui.test_is_dock.canvasList()[source]

Return a string representing the list of canvas layers (in correct order) but formatted with line breaks between each entry.

gui.test_is_dock.combosToString(ui)[source]

Helper to return a string showing the state of all combos (all their entries

gui.test_is_dock.formattedList(theList)[source]

Return a string representing a list of layers (in correct order) but formatted with line breaks between each entry.

gui.test_is_dock.getUiState(ui)[source]

Get state of the 3 combos on the DOCK ui. This method is purely for testing and not to be confused with the saveState and restoreState methods of inasafedock.

gui.test_is_dock.loadLayers(theLayerList, theClearFlag=True, DIR='/home/timlinux/.qgis/python/plugins/inasafe_data/test')[source]

Helper function to load layers as defined in a python list.

gui.test_is_dock.loadStandardLayers()[source]

Helper function to load standard layers into the dialog.

gui.test_is_dock.populatemyDock()[source]

A helper function to populate the DOCK and set it to a valid state.

Previous topic

Module: test_is_plugin

Next topic

Module: test_is_map

This Page