Update test_get_keyword_from_file to use data from InaSAFE source.

We are getting rid of the usage of test data from inasafe_data in favor of test data from InaSAFE source tree.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Remove DIRECTORY param in load_layer function.

In progress on updating InaSAFE test to use local data, not from inasafe_data.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update test_keyword_io to use data from source tree.

We are on the way to update all the tests that use inasafe_data to use data from source tree.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Use *test* dir in *temp_dir* for testing.

To standardise the tests to dump the data in test dir inside temp_dir.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update test_print_impact_table.

Use test data from source tree rather than from inasafe_data.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update tests in test_map module.

Use test data from source tree rather than from inasafe_data.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update tests in test_map_legend.

* Update the test to use tests data from source tree (test_add_class_to_legend, test_add_symbol_to_legend, test_get_legend, test_get_raster_legend, test_get_vector_legend)
* Add 1 raster impact layer (we haven't had impact layer test data that is a raster)
* Update some control images

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update the tests in test_keywords_dialog module.

* Use tests data in InaSAFE source for these tests:
        * test_add_keyword_when_press_ok_button
        * test_get_value_for_key
        * test_load_state_from_keywords
        * test_on_dsb_female_ratio_default_value_changed
        * test_on_rad_postprocessing_toggled
        * test_remove_item_by_value
        * test_check_aggregation
* Update clone_shp_layer function
* Remove clone_padang_layer function
* Update tests in test_gis to not use clone_padang_layer function

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update the tests and test data.

* Update these tests to use test data in InaSAFE source:
	* test_get_layer_attribute_name
	* test_is_polygonal_layer
* Update the test data: boundaries/district_osm_jakarta.shp. Remove some unused attributes and add 2 attributes (TEST_INT, TEST_STR) for testing
* Remove make_polygon_layer and make_point_layer function that are not used anymore
* Add new hazard point data: Marapi volcano for testing. We don't have any point hazard data.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update test_project_interpretation to use data in source tree.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Fix test_issue_230 that was failed because load_layer has changed.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Merge branch 'develop' of github.com:AIFDR/inasafe into test_data
Fix failing tests in test_function_options_dialog.py

We need to import QGIS before importing any modules from PyQT to force using SIP API V.2 even if we don't use any QGIS modules.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Update some tests and add test data.

* Update these tests to use data in InaSAFE source tree:
	* test_issue126
	* test_issue121
	* test_transparency_of_minimum_value
* Add a test data: safe/test/data/other/issue126.tif

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>
Merge pull request #1451 from akbargumbira/test_data

Updating Tests to Use Test Data in InaSAFE Source Tree