This module is intended to work together with the ThinkHazard module.
Create a Python virtual environment and install the project into it:
$ make install
Create a database and then populate it with:
$ make initdb
For more options, see:
$ make help
The settings defined in the thinkhazard_processing.yaml
file can be overriden by creating a local_settings.yaml
file at the root of the project.
For example, you can define a specific database connection with a local_settings.yaml
file that looks like this:
sqlalchemy.url: postgresql://www-data:www-data@localhost:9999/thinkhazard
Prior to running the tests, one has to create a dedicated database, eg. thinkhazard_tests, and register it with:
$ echo "sqlalchemy.url: postgresql://www-data:www-data@localhost/thinkhazard_tests" > local.tests.yaml
Run the tests with the following command:
$ make test