# svir.test package

## Subpackages

- svir.test.integration package
  - Submodules
  - svir.test.integration.test_drive_oq_engine module
  - Module contents
- svir.test.unit package
  - Submodules
  - svir.test.unit.test_calculate_indices module
  - svir.test.unit.test_init module
  - svir.test.unit.test_irmt module
  - svir.test.unit.test_load_oq_engine_output_as_layer module
  - svir.test.unit.test_loss_aggreagation module
  - svir.test.unit.test_metadata_utilities module
  - svir.test.unit.test_process_layer module
  - svir.test.unit.test_qgis_environment module
  - svir.test.unit.test_recovery_modeling module
  - svir.test.unit.test_transformations module
  - svir.test.unit.test_translations module
  - Module contents

## Submodules

## svir.test.qgis_interface module

## svir.test.qgis_legend_interface module

## svir.test.utilities module

Helper module for gui test suite.

`svir.test.utilities.``assert_and_emit`(signal, assertion, p1, p2, msg)

`svir.test.utilities.``assert_hash_for_file`(hash_string, filename)

  Assert that a files hash matches its expected hash. :param filename: :param hash_string:

`svir.test.utilities.``compare_wkt`(a, b, tol=1e-06)

  Helper function to compare WKT geometries with given tolerance Taken from QGIS test suite

  Parameters: | a (str) – Input WKT geometry b (str) – Expected WKT geometry tol (float) – compare tolerance
  Returns: | True on success, False on failure
  Return type: | bool

`svir.test.utilities.``get_dock`()

  Get a dock for testing.

  If you call this function from a QGIS Desktop, you will get the real dock, however, you use a fake QGIS interface, it will create a fake dock for you.

  Returns: | A dock.
  Return type: | QDockWidget

`svir.test.utilities.``hash_for_file`(filename)

  Return an md5 checksum for a file :param filename:

## Module contents