Implement a first acceptance test
Before moving all SQL queries in Initializer to exposure-lib (!40 (merged)), it would be good to have a simple acceptance test that import the exposure data of a small country. Andorra is a good candidate because it consists of multiple district, is not complete and sufficiently small. Unfortunately, Andorra does not contain tiles outside the district boundaries but the only small countries with this feature are in Oceania and the their aggregated exposure models are licensed under CC BY-SA-NC. I think it is better to have an exposure model licensed under CC BY to be in the repository.
This tests needs a prepared SpatiaLite database containing the tiles and boundaries of Andorra as these are retrieved from the server in normal operations.
The acceptance test can check for:
- the total number of reference entities
- the total number of reference assets
- the total number of buildings
- the total population
- combination of assets for one or more reference entities