Created
August 29, 2013 13:14
-
-
Save timlinux/6377934 to your computer and use it in GitHub Desktop.
An example showing skipping based on some criteria
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @skipIf(sys.platform == 'win32', "Test cannot run on Windows") | |
| def test_full_run_qgszstats(self): | |
| """Aggregation results are correct using native QGIS zonal stats. | |
| .. note:: We know this is going to fail (hence the decorator) as | |
| QGIS1.8 zonal stats are broken. We expect this to pass when we | |
| have ported to the QGIS 2.0 api at which time we can remove the | |
| decorator. TS July 2013 | |
| """ | |
| # TODO check that the values are similar enough to the python stats | |
| myFileList = ['kabupaten_jakarta.shp'] | |
| load_layers(myFileList, clear_flag=False, data_directory=BOUNDDATA) | |
| myResult, myMessage = setup_scenario( | |
| DOCK, | |
| hazard='A flood in Jakarta like in 2007', | |
| exposure='People', | |
| function='Need evacuation', | |
| function_id='Flood Evacuation Function', | |
| aggregation_layer='kabupaten jakarta', | |
| aggregation_enabled_flag=True) | |
| assert myResult, myMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment